Labs SEI >

Table of Contents


Java Messaging Service

" JMS is an API for messaging services provided by some messaging technologies. Messaging provides a decoupled, scalable, robust, and proven way to distribute messages to possibly unknown consumers. The Event-Driven Architecture (EDA) and the Event-Delivery Network (EDN) are based on the same concepts and largely the same infrastructure—yet they operate on a slightly higher level, more business event oriented and somewhat abstracted away from J(2)EE technology. "
-- in Lucas Jellema, "Oracle SOA Suite 11g Handbook", McGraw-Hill Companies, June 2011, pp. 383

" The Java Message Service (JMS) API is a Java Message Oriented Middleware (MOM) API for sending messages between two or more clients. JMS is a part of the Java Platform, Enterprise Edition, and is defined by a specification developed under the Java Community Process as JSR 914. It is a messaging standard that allows application components based on the Java Enterprise Edition (JEE) to create, send, receive, and read messages. It allows the communication between different components of a distributed application to be loosely coupled, reliable, and asynchronous. "
-- in Wikipedia, http://en.wikipedia.org/wiki/Java_Message_Service

Connect to a JMS Queue

  1. Create a new synchronous BPEL process named order_equipment.
  2. Create a new XML schema named "orders.xsd". Define an element named "order" which inside has two elements: "name" and "quantity").
  3. screenshot
  4. Drag a JMSadapter to the BPEL process.
  5. screenshot
  6. Name the Service as JMS_ORDER.
  7. screenshot
  8. Select Oracle Weblogic jms as the OEMS.
  9. Choose the localhost-wls connection. (Be sure you already started the Weblogic Server)
  10. screenshot
  11. Choose to define the schema later.
  12. screenshot
  13. Select operation type as produce. Name the operation as Produce_Message.
  14. screenshot
  15. Click on the browse destination name button.
  16. screenshot
  17. Choose the B2B_OUT_QUEUE.
  18. screenshot
  19. Indicate that the message is valid for one day and name the queue as eis/wls/Queue. VERY IMPORTANT: Do not misspell this JNDI name
  20. screenshot
  21. Use the orders.xsd schema as the message schema.
  22. screenshot
  23. Connect the created BPEL service to the new JMS adapter.
  24. screenshot
  25. Perform the normal assignements to pass arguments from the input to the invoke arguments.
  26. Deploy the web service and test one time.
  27. In the Oracle BPM console select JMS Modules and then SOAJMSMODULE:
    http://localhost:7001/console
  28. screenshot
  29. Select the B2B out queue.
  30. screenshot
  31. Click on the queue checkbox.
  32. screenshot
  33. Click on the message ID.
  34. screenshot
  35. Note the message details.
  36. screenshot

References

Lucas Jellema, "Oracle SOA Suite 11g Handbook", McGraw-Hill, June 2011, pp. 386