How to Publish a message using SOA Suite JMS Adapter

That is a very easy task but can be quite annoying if you don´t know were the right elements are, so here it is:

  1. First of all you have to setup a Queue, in this post if you need it;
  2. Now the SOA Suite communicates with everything through adapters, JMS Adapter in this example, and the adapter is the one responsible for publishing the message so when you want to publish a message, you have to setup a connection from the adapter to the Queue and then your composite to the adapter.
  3. To do that go to your server console and under Deployments, click on the JMS Adapter deployment;
  4. Under Settings, navigate to Configuration -> Outbound Connection Pools;
  5. Click the New button at the Outbound Connection Pool Configuration Table;
  6. Select the oracle.tip.adapter.jms.IJmsConnectionFactory and click Next;
  7. On the JNDI Name field, insert the jndi path you want your composite to access;
  8. Select a Deployment plan and then Finish;
  9. Now back on the Outbound Connection Pools tab, expand the list on Outbound Connection Pool Configuration Table and click on the Connection Pool you have created;
  10. On the properties tab assign a value to the ConnectionFactoryLocation, hit Enter and then save;

Now on your Soa Suite project:

  1. On your composite.xml, drag a JMS Adapter on the External References column;
  2. At the wizard, give the service a name;


  3. On the JMS Provider screen point to Oracle Weblogic JMS if that is your case, like mine;


  4. Next the wizard will ask you for a connection to a server where the queue is, select or create a connection if you need, and then Next;


  5. Unless you already have a contract for your JMS connection, just select Define interface later on your next screen;


  6. On the Produce Operations Screen, select the Queue you are connecting to and on the JNDI name you must type the jndi for the JMS Adapter Connection Pool you create on step 9 previously. Click Next;


  7. Select the Opaque schema on the next screen, unless you already have a schema for your message;


  8. Hit Next then Finish.


You can test it forwarding a request to it through a WS request, just like I did:




Thank you!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s