Friday, March 7, 2014

How to publish a message into JMS Queue using OSB Process?


This blog explains about publishing a message into JMS Queue using OSB

- Create JMSServer, JMSModule and JMSQueue. Below is list of queues which I have already created. Ensure target server should have OSBServer as target server.

- As we are going to publish/enqueue a message, Create a business service as shown below

- Using OEPE(Oracle Enterprise Pack for Ecilipse) create new OSB Configuration Project

- Create new OSB Project in above created OSB Configuration project as shown below


- Create various folders for Business Services, Proxy Services, xsd's and Transformations in above created OSB Project

- Create new business service by right clicking on 'Business Services' folder and choose Business Service, Give meaningful name

- Choose 'Messaging Service' in General tab as shown below

- Based on your requirement choose any of Message type for Request and Response, In this example, I want to publish simple text message, I chosen 'Text' in Request , I don't have any response, so chosen 'None' in response as shown below
- Enter below information in 'Transport' tab
  Protocol - jms
  End Point URI - OSB Server name, Port , Keep the default connection factory as it is , JMS Queue name

- Enter the below info in 'JMSTransport' tab
 - Destination Type - Queue
 - Message Type - Text
 JMS Service Account - If you have any authentication setup on JMS Queue, then use the JMS Service account , otherwise leave this as blank
- If you want to persist the message until the consumer consumes the message then select 'Enable Persistent Message' option as shown below

We are done with creating business service which publish message into JMS Queue.

No comments:

Post a Comment