How to implement request-reply pattern using two message brokers ?

Solution Verified - Updated -

Issue

  • How to implement asynchronous request-reply pattern using two JMS message broker instances? Such that service A sends a message to queue A in Broker 1. Camel route process the message and put in Queue B in Broker 2. Now, how to send the response from queue B (from Broker 2) to the client using the JMSReplyTo header?

  • We trying to create a bridge between sonic mq and active mq. Client will put the message in sonic mq. And the message will contain the reply to information. So as part of the solution we will read the message from sonic mq and put it active mq, and listner will read from activemq and put the response in active mq. The response will retain the reply to information, so we now have to move that response from active mq response queue to sonic mq temp queue .

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Apache Camel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.