Publishing messages to a queue

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:

  1. Open the axis2.xml file.
  2. Look for the following ...

Get WSO2 Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.