Official guide
Reproduce steps
- cd to the payara-micro-remote-cdi-event-demo folder
- package first
$ mvn clean package
- start 3 instances by execute the following command
$ mvn exec:exec
- execute
$ curl http://localhost:8080/payara-micro-remote-cdi-event-demo/?msg=clustered-msg
- check the console
- you would find that the sender instance would NOT receive the event
- curl http://localhost:8080/payara-micro-remote-cdi-event-demo/loop-back?msg=loop-back-clustered-msg
- check the console
- you would now see the sender instance will receive the event..