Cluster Configuration

About this task

The FIFO messaging system requires an external clustered JMS provider to allow proper execution and fail over in a clustered configuration. An out of the box configuration for ActiveMQ is provided to streamline this deployment.

You must ensure that you have downloaded and installed the correct software jars for ActiveMQ. For more information on installing ActiveMQ client jars in Sterling B2B Integrator, see the Installing JMS Jar Files procedure in Supported Vendors and Configurations for JMS 1.1.

To configure FIFO messaging in a cluster for ActiveMQ:


  1. Download ActiveMQ from<ActiveMQ version>-release.html for the appropriate OS.
    Here, ActiveMQ version is the version of ActiveMQ used.
  2. Deploy an instance of ActiveMQ on each node of the cluster.
  3. An activemq.xml file is included the properties/fifo directory of the Sterling B2B Integrator deployment of each node. For each node, take this file and copy it to the ActiveMQ deployment on that node within the conf directory. This file will configure ActiveMQ to use fail over clustering utilizing the Sterling B2B Integrator database for storage and configure its port usage. By default, ActiveMQ will be configured to listen at the Sterling B2B Integrator base port + 65 and the ActiveMQ interface will be at base port + 66 (http://server:base port + 66/admin).
  4. On each Sterling B2B Integrator node, the queue configuration must be re-directed to utilize the ActiveMQ cluster. In each node, add the following to
    failover:(tcp://node1_hostname:node1_base_port + 65,
    tcp://node2_hostname:node_2_base_port + 65, ..., 
    tcp://noden_hostname:node_n_base_port + 65)
  5. Start the ActiveMQ instances on each node. See for additional information about running an ActiveMQ instance.
  6. Restart Sterling B2B Integrator.

    Configuring FIFO in a cluster environment:

    If you are using the FIFO Routing Adapter, the use of UDP protocol for the jgroups property lock.protocolStack with cluster environments using the same base ports in the same subnet can sometimes cause the FIFO Routing Adapter not to start correctly and stay stuck in starting status.

    To correct this issue the jgroups property, lock.protocolStack needs to be updated to TCP.

    Use the following value for the property_string property in the file or the file with the jgroups_cluster prefix replacing HOST_ADDR and MULTICAST_NODE_PORT3 in the string with values from sandbox.cfg: