WSO2 is now Choreo LabsLearn more

Trusted AI Governance
Build

Create agents and AI apps with the tools and languages your teams already use.

Connect

Link agents securely to your APIs, data, models and business systems.

Run

Deploy, observe and operate agents and AI apps reliably at any scale.

Govern

Control identity, access, cost and policy for every agent in production.

Agent Management

Developer Platform

  • API Management Cloud

    Design, secure and publish APIs with governance and analytics built in.

    Sign Up Now
  • Integration Cloud

    Connect apps, data and AI agents with low-code and pro-code integration.

    Sign Up Now
  • Identity & Access Management Cloud

    Secure sign-in and access for customers, partners, workforce and agents.

    Sign Up Now
  • Agent Management Cloud

    Build, run and govern AI agents with full visibility and control.

    Sign Up Now
  • Developer Platform Cloud

    Ship cloud-native apps faster on an internal developer platform.

    Sign Up Now

Self-Hosted

Full control over your stack. Deploy directly to your own servers, bare metal, cloud, or Kubernetes environment. Your data never leaves your perimeter.

Product Downloads
Choreo Labs
AI Governance
Platform
Solutions
Resources
Article

[Blog post] how to connect multiple ActiveMQ brokers to WSO2 enterprise service bus

A common use-case scenario is to work WSO2 ESB with one broker service. But, when it goes to production deployment, it may need to have more than one broker service to maintain high availability in the production system. WSO2 ESB facilitates the connection of more than one ActiveMQ brokers to serve the above requirement.

Common use-case

Multiple Broker use-case

Following are the steps that need to be taken to configure WSO2 ESB to work with the multiple ActiveMQ brokers.

1. Configure one ActiveMQ broker with an ESB instance like common use-case. Please follow my previous blog post to do that.

2. Now start another ActiveMQ instance.

3. Assume first ActiveMQ instance port is 61616, second instance port is 61617.

4. Open axis2.xml located in ESB_HOME/repository/conf/axis2/ location

5. Now you already have one JMS receiver like follows.

6. Add another new transport receiver as follows. Make sure to change "transportReceiver name". This will be the second transport receiver.

7. Now start the ESB server. The ESB console will print the below messages once the ESB server is successfully connected to both ActiveMQ brokers.

INFO - PassThroughHttpListener Initializing Pass-through HTTP/S Listener... INFO - JMSConnectionFactory JMS ConnectionFactory : myTopicConnectionFactory initialized INFO - JMSConnectionFactory JMS ConnectionFactory : myQueueConnectionFactory initialized INFO - JMSConnectionFactory JMS ConnectionFactory : default initialized INFO - JMSListener JMS Transport Receiver/Listener initialized... INFO - JMSConnectionFactory JMS ConnectionFactory : myTopicConnectionFactory initialized INFO - JMSConnectionFactory JMS ConnectionFactory : myQueueConnectionFactory initialized INFO - JMSConnectionFactory JMS ConnectionFactory : default initialized INFO - JMSListener JMS Transport Receiver/Listener initialized...

8. Now you can create a sample proxy service by adding both JMS listners. It will listen to both ActiveMQ broker queues.

Source: https://chamaras.blogspot.com/2013/08/how-to-connet-multiple-activemq-servers.html