Skip to content

Commit

Permalink
ARTEMIS-4802 - Fixing the use of depricating tags master,slave,check-…
Browse files Browse the repository at this point in the history
…for-live-server in ha/replicated-failback sample
  • Loading branch information
susinda committed Jun 7, 2024
1 parent ee887cc commit ba7e4d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
12 changes: 10 additions & 2 deletions examples/features/ha/replicated-failback/readme.md
Original file line number Diff line number Diff line change
@@ -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.
For more information on ActiveMQ Artemis failover and HA, and clustering in general, please see the clustering section of the user manual.

Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ under the License.

<ha-policy>
<replication>
<master>
<primary>
<!--we need this for auto failback-->
<check-for-live-server>true</check-for-live-server>
</master>
<check-for-active-server>true</check-for-active-server>
</primary>
</replication>
</ha-policy>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ under the License.

<ha-policy>
<replication>
<slave>
<backup>
<allow-failback>true</allow-failback>
</slave>
</backup>
</replication>
</ha-policy>

Expand Down

0 comments on commit ba7e4d3

Please sign in to comment.