Publishing messages to JMS queues in SOA Suite 12C

This post is continuous to my previous post “Creating a JMS queue in oracle weblogic server 12C”.

For viewing my previous post ClickHere

Here we are discussing on publishing messages to the queue.

we will create a BPEL process which will publish messages to a JMS queue using a JMS adapter.

For creating this sample we need the below objects.

  • Connection factory
  • Queue
  • Connection Pool.

I already created Connection Factory and queue in my old post , here I will create a connection pool.

Login to weblogic server console .

http://host:port/console

Go to Deployments-> Jms Adapter

publishjms

Open the JMS adapter and go to Configuration -> Outbound Connection Pools and create a new connection pool.

publishjms1

  • Check the oracle.tip.adapter.jms.IJmsConnectionFactory check box and Next.
  • Enter JNDI Name: eis/jms/TestQueue
    for the connection instance, then press Finish.
  • publishjms2
  • Expand oracle.tip.adapter.jms.IJmsConnectionFactory again and select (click on) eis/jms/TestQueue

Enter jms/TestConnectionFactory  into the Property Value field for Connection Factory Location. After entering it, you must press Return/Enter then Save for the value to be accepted.

publishjms3.JPG

Now we need to redeploy the JMS adapter to reflect the changes.

Go to Deployments-> Select the check box next to Jms Adapter  and click on UPDATE.

publishjms4

On the Update Application page, select “Redeploy this application using the following deployment files” and press Finish.

Once the deployments updated successfully, Activate the changes.

Create a Project with BPEL process and add the JMS adapter to publish the message in previously created queue.

My input schema looks like below.

publishjms5

Now in the External References drag a JMS adapter and configure it to point to Queue (jms/TestQueue).

publishjms6.JPG

Select the JMS provider as “Oracle Enterprise Messaging Service(oracle weblogic JMS)” and click on Next.

publishjms7

Select the Application Server connection and click on Next.

publishjms8

Select the Interface as “Define from operation and schema” and click on Next.

publishjms9.JPG

Select the Operation type as “Produce Message” and click on Next.

publishjms10

Select the JNDI name and click on Next. Select the schema and click on Next and Finish the set up.

publishjms14.jpg

Wire the JMS adapter to your BPEL process and assign the input to Jms adapter, Save and deploy .

publishjms12publishjms13

Test the BPEL process and you can see the message in queue.

publishjms11.JPG

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s