Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARTEMIS-4802 - Fixing the use of depricating tags master,slave,check-… #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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