Skip to content

Latest commit

 

History

History
 
 

infinispan-examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Vert.x Infinispan examples

This project shows a simple example using the Infinispan cluster manager (instead of the Hazelcast cluster manager).

This project is composed by three small applications:

Start these applications from your IDE, and you should see the sent and receive data (don’t forget to start the 3 of them application).

You can start more than one StatsConsumerApp and see how the counter is incremented atomically

Network interface selection

The applications try to pick the network address automatically, but it may be wrong. In this case pass the IP of the interface you want to use as parameter.

Launching the example from the command line

you can launch the producer and consumer as follows:

mvn clean package
java -jar target/infinispan-examples-3.5.1-fat.jar run io.vertx.example.infinispan.StatsProducerApp -cluster
java -jar target/infinispan-examples-3.5.1-fat.jar run io.vertx.example.infinispan.StatsConsumerApp -cluster
java -jar target/infinispan-examples-3.5.1-fat.jar run io.vertx.example.infinispan.DisplayStatsApp -cluster