Class SymmetricClusterExample


  • public class SymmetricClusterExample
    extends java.lang.Object
    This 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.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SymmetricClusterExample

        public SymmetricClusterExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception