Class SymmetricClusterExample
- java.lang.Object
-
- org.apache.activemq.artemis.jms.example.SymmetricClusterExample
-
public class SymmetricClusterExample extends java.lang.ObjectThis example demonstrates a cluster of three nodes set up in a symmetric topology - i.e. each node is connected to every other node in the cluster. Also each node, has it's own backup node.This is probably the most obvious clustering topology and the one most people will be familiar with from using clustering in an app server, where every node has pretty much identical configuration to every other node.
By clustering nodes symmetrically, ActiveMQ Artemis can give the impression of clustered queues, topics and durable subscriptions.
In this example we send some messages to a distributed queue and topic and kill all the live servers at different times, and verify that they transparently fail over onto their backup servers.
Please see the readme for more information.
-
-
Constructor Summary
Constructors Constructor Description SymmetricClusterExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-