The use case details below assume there are two ActiveMQ servers configured as indicated above.

Use Case Steps

The Sentry configuration objects detailed below are included in the attached v8.7 FSG (import password is password). After importing the FSG, update the listener and remote policies to point to your own ActiveMQ instances.

ActiveMQ listener where the connection URI is set to the two ActiveMQ servers as:

This configuration utilizes the Test policy to send messages to ActiveMQ directly via the remote policy. The messages are then consumed using the ActiveMQ listener policy which in turns forwards the messages via HTTP to a loopback service policy.

Testing

Run the test policy a few times and then check the ActiveMQ servers. You should see all messages going to 1 server:

Stop ActiveMQ on the server receiving all messages and see that message will now all go to the other server: