Deploying with JDeveloper WLS JMS Text Message

8-42 Oracle Fusion Middleware Users Guide for Technology Adapters Two options are supported that enable you to access remote destinations via the JMS adapter: ■ Direct access via specification of the FactoryProperties property in the weblogic-ra.xml file, with access parameters indicating the remote domain. ■ Configuring the foreign server to access the remote domain. For inbound use cases, both options are supported. For outbound use cases only, direct access is supported, but configuring the foreign server is not supported.

8.4.7 SynchronousAsynchronous Request Reply Interaction Pattern

Oracle JMS Adapter supports both synchronous and asynchronous request reply interaction pattern.

8.4.7.1 Synchronous Request Reply Pattern

You can use the Adapter Configuration Wizard to model a process that will allow Oracle JMS Adapter to be used in a synchronous request reply interaction pattern. In this case, the Oracle JMS Adapter sends a request to the request queue and waits for a response from the reply queue before further execution continues. Underneath, the Oracle JMS Adapter uses a new interaction pattern JmsRequestReplyInteractionSpec. This interaction spec allows for a request and reply destination name to be configured. A variation, new to 11g Release 1 11.1.1.4.0, allows usage of temporary destination as part of the reply queue. Basically, this pattern allows an Oracle JMS Adapter to send a message to a JMS destination. In turn, the adapter will set the JMSReplyTo header to the reply destination. This value is then used by a third party client to send the message to the reply destination which is then dequeued by the Oracle JMS Adapter. When using the Oracle JMS Adapter in a synchronous pattern ensure that you use a non-XA connection factory and set the connector factory isTransacted property to true in weblogic-ra.xml. When you use the Oracle JMS Adapter in a synchronous pattern with Oracle WebLogic Server JMS, the connection factory must be weblogic.jms.ConnectionFactory or any other non-XA connection factory. For more information, you can obtain the following samples by accessing the Oracle SOA Sample Code site, and selecting the Adapters tab. ■ adapters-jms-106-wlsjms-syncrequestreply ■ adapters-jms-107-wlsjms-syncrequestreplywithtemporaryreplydesti nation

8.4.7.2 Asynchronous Request Reply Pattern

You can use the Adapter Configuration Wizard to model a process that allows Oracle JMS Adapter to be used in an asynchronous request reply interaction pattern. Basically this pattern allows an Oracle JMS Adapter to send a message to a JMS destination. When a message is received on the reply queue, the Oracle JMS Adapter is able to route message to the correct composite or the component instance. The correlation is done based on the JMSMessageID of the request message, which becomes the JMSCorrelationID of the reply message, and the conversation ID of the underlying component. For more information, you can obtain the following samples by accessing the Oracle SOA Sample Code site, and selecting the Adapters tab. Oracle JCA Adapter for JMS 8-43 ■ adapters-jms-105-wlsjms-nativecorrelation

8.4.8 AQ JMS Text Message

This use case demonstrates how the Oracle JMS Adapter dequeues from and enqueues to the AQ JMS Queue. You can obtain the adapters-jms-108-aqjms-textmessageusingqueues sample by accessing the Oracle SOA Sample Code site, and selecting the Adapters tab. This section includes the following topics: ■ Section 8.4.8.1, Meeting Prerequisites ■ Section 8.4.8.2, Create an Application Server Connection ■ Section 8.4.8.3, Creating an Application and an SOA Project ■ Section 8.4.8.4, Creating an Inbound Adapter Service ■ Section 8.4.8.5, Creating an Outbound Adapter Service ■ Section 8.4.8.6, Wiring Services and Activities ■ Section 8.4.8.7, Deploying with JDeveloper ■ Section 8.4.8.8, Monitoring Using the Fusion Middleware Control Console