At this point, we have our queue ready to receive new messages. Here, we will learn how to send a message from WSO2 EI to a JMS Queue, which in this case will be the queue we created in the previous section:
First of all, we have to enable the JMS transport sender in WSO2 EI so that we can send messages to a JMS endpoint; in this case, the My1stQueue queue. You may remember what we learned in the first chapter about how to configure different transports in WSO2 EI. Assuming this background, we will follow these steps to enable the JMS transport for WSO2 Message Broker:
- Open the axis2.xml file.
- Look for the following string in this file:
transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"
You must find an XML tag that is commented by default when you download a fresh WSO2 EI:
- As you can imagine from...