Read or Poll Message From JMS Queue

By | January 30, 2014 | 0 Comment

In previous post, we discussed how to create JMS queue. In this post we will discuss how to poll or read message from JMS queue using JMS adapter.

Before creating JMS adapter , make sure JMS queue is there on server and soa server connection is created.

Create JMS adapter, name you adapter.

ReadJMS_Adapter

Choose “Oracle Weblogic JMS” from drop down as we are going to read message from JMS queue which is on Weblogic.

Choose SOA server connection.

ReadJMS_Connection

Choose “Consume Message” option to read or poll the message from JMS queue.

ReadJMS_Consume

Choose JMS queue from which we will read the message. To do that click on browse and choose your queue.

ReadJMS_Queue

Be default JNDI name is “eis/wls/Queue”, if you are having custom JNDI then you can put it here.

Choose the schema element as the request message that will be there in JMS queue will be as per schema.

ReadJMS_Schema

 

Once you complete the adapter, add BPEL process and wire it to JMS adapter.

ReadJMS_BPELComplete

 

Deploy your composite and put one message to JMS queue. You will see one instance of SOA composite.

 

Sample Code can be downloaded from below.

PollJMSMessage

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *