Produce message using JMS Adapter in SOA Suite 12C

In my previous example, we have discussed about the configuration of JMS connection pool. Now we will try here to publish message in JMS queue. All input data will be published in the testQueue using JMS connection pool (eis/jms/testConnectionPool). Find the below steps to publish message in JMS queue.

  1. Create a new application. Navigate to File -> New -> Application -> General -> Applications -> SOA Application. Enter the application name and click on Next button to create a SOA Project.Produce_Message_JMS_Queue_1
  2. Enter SOA project name and select Composite With BPEL process option in the next wizardProduce_Message_JMS_Queue_2
  3. Click on Finish button and BPEL process creation wizard will open. Enter BPEL process name and select Synchronous BPEL Process as template type. Select Employee.xsd file as input and output payload by clicking on glass icon. Import the schema file from local directory and then select the schema file.Produce_Message_JMS_Queue_3 Produce_Message_JMS_Queue_4
  4. Click on OK button. Drag a JMS adapter from the component palate in the right swim lane (External Reference lane). This will open up the configuration window of JMS adapter. Enter the reference name.Produce_Message_JMS_Queue_5
  5. Click on Next button. Select Oracle Weblogic JMS as Oracle Enterprise Messaging Service from drop down list and Select Integrated Weblogic Server as appServer Connection as shown in the below screenshotProduce_Message_JMS_Queue_6
  6. Select Produce Message as Operation typeProduce_Message_JMS_Queue_7
  7. Click on Next Browse Destination Queue name and JNDI name of JMS Connection pool from the available listProduce_Message_JMS_Queue_8
  8. Select the same employee schema in the next wizard.Produce_Message_JMS_Queue_9
  9. Now composite will look like this. Double click on BPEL process and do the necessary activity to produce message in queue.Produce_Message_JMS_Queue_10
  10. Drag and drop Invoke activity in between receiveInput and replyOutputProduce_Message_JMS_Queue_11
  11. Invoke Editor Window will open. Enter name of the invoke activity and select jms reference as partner link. Create input variable to hold the input value that will come from user. Click on OK buttonProduce_Message_JMS_Queue_12
  12. Drag an Assign activity and drop it before the Invoke activity. Double click on assign activity and map the input payload with the input variable of invoke activityProduce_Message_JMS_Queue_13
  13. Drag and drop another Assign activity after invoke activityProduce_Message_JMS_Queue_14
  14. Map the input payload with output payload in the second assign activityProduce_Message_JMS_Queue_15
  15. Now the BPEL process will look like below screenshotProduce_Message_JMS_Queue_16
  16. Deploy the project and test it in EM Console. Enter input values and click on Test web ServiceProduce_Message_JMS_Queue_17
  17. Navigate to Admin Console -> Services -> Messaging -> JMS Modules -> testJMSModule -> testQueue -> Select the message and then click on Show MessagesProduce_Message_JMS_Queue_18
  18. Click the hyperlink on the ID columnProduce_Message_JMS_Queue_19
  19. The message will be displayed in xml format. Match the message with output values in EM Console.Produce_Message_JMS_Queue_20

You can consume this produced message through SOA project. Refer my next article to consume message from JMS queue.

Leave a Reply

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

Show my latest post here