Oracle SOA Suite Online Training

Interested in learning Oracle SOA Suite 12c?
Learn from the author of this blog!
A complete and comprehensive course on the #1 platform on SOA - Oracle SOA Suite

Click here to find the complete course details
Click here to check the first session on Oracle SOA Suite 12c


Publish Message to JMS Queue

This post takes you through a step-by-step procedure to create a JMSAdapter that publishes a message

1. Create a new SOA Project 
2. Define a message schema of the following type

3. Drag and drop JMSAdapter from the component palette to References section of composite.xml 
4. Configure the JMSAdapter as per the screenshots given below

The below wizard is important
Select the Queue where the message is to be published(which is created in previous tutorial)
Set the TimeToLive property whose meaning is obvious. The message disappears after this time
Also, set the JNDI name of the ConnectionPool that you've created in the previous tutorial

Your composite would look like this

5. Create a one-way Mediator with the input type similar to the one for JMSAdapter(with SOAP endpoint) and wire it to the JMSAdapter

6. Composite looks like this

7. Now, open the mediator, create the transformation file in the Routing Rule and deploy

Open the composite in EM and test it (give a payload of your choice)

To check if the message is published to JMS,
Goto Services --> Messaging --> JMS Modules --> MyJMSModule --> myQueue --> Monitoring tab --> click on the Queue name --> Show Messages --> click on the message

This message stays in the queue for the time that is configured in the wizard. After that time, the message expires.


  1. Hi what will happen when the consumer is not available to the requested queue? where will this file go?

  2. the message will persist in Queue only. . .

  3. very very good explanation with Exp and Screen shots clearly