diff --git a/examples/features/ha/replicated-failback/readme.md b/examples/features/ha/replicated-failback/readme.md index 8dfe609e..7201320c 100644 --- a/examples/features/ha/replicated-failback/readme.md +++ b/examples/features/ha/replicated-failback/readme.md @@ -1,7 +1,15 @@ # JMS Replicated Failback Example -To run the example, simply type **mvn verify** from this directory. +## Preparation +If not already done, [Prepare the broker distribution](https://github.com/apache/activemq-artemis-examples?tab=readme-ov-file#prepare-the-broker-distribution). + +## Running the Example +To run the example, simply execute the below command from this directory: +``` +mvn verify +``` This example demonstrates two servers coupled as a live-backup pair for high availability (HA) using replication and a client connection failing over from live to backup when the live broker is crashed and then back to the original live when it is restarted (i.e. "failback"). -For more information on ActiveMQ Artemis failover and HA, and clustering in general, please see the clustering section of the user manual. \ No newline at end of file +For more information on ActiveMQ Artemis failover and HA, and clustering in general, please see the clustering section of the user manual. + diff --git a/examples/features/ha/replicated-failback/src/main/resources/activemq/server0/broker.xml b/examples/features/ha/replicated-failback/src/main/resources/activemq/server0/broker.xml index 6fce88de..f3c3a097 100644 --- a/examples/features/ha/replicated-failback/src/main/resources/activemq/server0/broker.xml +++ b/examples/features/ha/replicated-failback/src/main/resources/activemq/server0/broker.xml @@ -34,10 +34,10 @@ under the License. - + - true - + true + diff --git a/examples/features/ha/replicated-failback/src/main/resources/activemq/server1/broker.xml b/examples/features/ha/replicated-failback/src/main/resources/activemq/server1/broker.xml index 84350913..dd35ba69 100644 --- a/examples/features/ha/replicated-failback/src/main/resources/activemq/server1/broker.xml +++ b/examples/features/ha/replicated-failback/src/main/resources/activemq/server1/broker.xml @@ -34,9 +34,9 @@ under the License. - + true - +