Before running the code, let's build it using the following command:
mvn clean install
This will create a JAR file with the name as chapter13-0.0.1-SNAPSHOT-jar-with-dependencies.jar in chapter13/target directory.
Before running the code, let's build it using the following command:
mvn clean install
This will create a JAR file with the name as chapter13-0.0.1-SNAPSHOT-jar-with-dependencies.jar in chapter13/target directory.
Execute the following command to load static values into Hazelcast:
java -cp target/chapter12-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.book.simulator.HazelCastLoader <phone_number> vehicle-static-data 10000
The output will be as the following screenshot. Wait for the next step to be executed as the program reads only the latest entries from the Kafka topic:
Hazelcast UI will display one map: vehicleAlertInfo, as shown in the following screenshot: