The following diagram depicts quad-channel JMS synchronous invocations of the WSO2 ESB.
Follow the steps below to set the prerequisites up before you start.
- Download and set up Apache ActiveMQ. For instructions, see Installation Prerequisites.
- Copy the following client libraries from the
<AMQ_HOME>/libdirectory to the
ActiveMQ 5.8.0 and above
Earlier versions of ActiveMQ
Add the following properties to the
<ESB_HOME>/repository/conf/jndi.propertiesfile. For more information, see Setting up WSO2 ESB and ActiveMQ.
Uncomment the following sections in the
To enable the JMS transport sender:
To enable the JMS transport listener:
Following is a sample configuration of WSO2 ESB for quad-channel JMS synchronous invocations.
The message flow of the above sample configuration is as follows:
- The JMSReplyTo property of the JMS message is set to ClientRes. Therefore, the client sends a JMS message to the ClientReq queue.
- The transport.jms.ReplyDestination value is set to BERes. This enables the WSO2 ESB proxy to pick messages from ClientReq queue, and send to BEReq queue.
- The back-end picks messages from the BEReq queue, processes and places response messages to BERes queue.
- Once a response is available in BERes queue, the proxy service picks it and sends back to ClientRes queue.
- The client picks it as the response message.