Navigate to Services, Messaging, JMS Modules in the Domain Structure pane.

Oracle JCA Adapter for JMS 8-45 In the JNDI Properties field, enter datasource=datasource jndi location. Replace the place holder with the JNDI location of your data source. However, if the AQJMS Foreign Server is used by WebLogic application client, then you must configure the JDBC URL with the AQ JMS foreign server you created. ■ JNDI Connection URL : Specify the URL that WebLogic Server will use to contact the JNDI provider. This value is required only if the AQJMS foreign server is used by the WebLogic application client. ■ JNDI Properties Credential: Specify any Credentials that must be set for the JNDI provider. This value is required only if the AQJMS foreign server is used by the Weblogic application client. Adding Connection Factories to the AQ JMS Foreign Server To add connection factories to the AQJMS foreign server: 1. In the Connection Factories tab in the Settings for Foreign Server Name page, click the AQJMS foreign server that you created.

2. Click New.

The Oracle WebLogic Server Administration Console - Create a New Foreign JMS Connection Factory page is displayed.

3. In the Name field, enter a name for this connection factory. This is a logical name

that would be referenced by Oracle WebLogic Server.

4. In the Local JNDI Name field, enter the local JNDI name that you would use in

your application to look up this connection factory.

5. In the Remote JNDI Name field, enter one of the following values depending on

your requirement. If you use this connection factory in a global transaction, then use an XA-based connection factory, else use non-XA based connection factory. ■ QueueConnectionFactory ■ TopicConnectionFactory Note: If you want to use RAC database as adapter endpoint, then the datasource pointed by the JNDI property, mentioned in the preceding step, must point to a multi data source. Individual data sources and multi data sources used for such endpoints must use the recommended setting listed in Section 2.21, Recommended Setting for Data Sources Used by Oracle JCA Adapters. Note: Ensure that you specify aqjmsXAQueueConnectionFactory for local JNDI name if you are connecting to a queue with JNDI name eisaqjmsQueue that is provided with the sample use case, AQQueuetoQueue. Else, specify aqjmsXATopicConnectionFactory if you are connecting to a topic with JNDI name eisaqjmsTopic. 8-46 Oracle Fusion Middleware Users Guide for Technology Adapters ■ ConnectionFactory ■ XAQueueConnectionFactory ■ XATopicConnectionFactory ■ XAConnectionFactory

6. Click OK.

Adding Destinations to the AQJMS Foreign Server To add destinations to the AQJMS foreign server:

1. Click the Destinations tab in the Settings for Foreign Server Name page.

2. Click New and specify a name for this destination. This is a logical name that will

be referenced by the Oracle WebLogic Server and has nothing to do with the destination name.

3. In the Local JNDI Name field, enter the local JNDI name you would use in your

application to look up this destination.

4. In the Remote JNDI Name field, enter Queuesqueue nameif the destination

is a queue, or enter Topicstopic name if the destination is a topic.

5. Click OK.

6. Restart the Oracle WebLogic Server Administration Console. You have configured AQJMS in an Oracle WebLogic Server.

8.4.8.1.2 Creating Queues in Oracle Database

To create queues: 1. Run the setup_user.sql script. 2. Run the create_start_queues.sql script. These scripts are located in the adapters-jms-108-aqjms-textmessageusingqueues sample artifactssql directory. You can obtain the adapters-jms-108-aqjms-textmessageusingqueues sample by accessing the Oracle SOA Sample Code site, and selecting the Adapters tab.

8.4.8.2 Create an Application Server Connection

You must establish connectivity between the design-time environment and the server you want to deploy to. Perform the steps mentioned in Section 2.7, Creating an Application Server Connection for Oracle JCA Adapters to create an application server connection.

8.4.8.3 Creating an Application and an SOA Project

You must create an JDeveloper application to contain the SOA composite. Use the following steps to create a new application and an SOA project: 1. Open JDeveloper.

2. In the Application Navigator, click New Application. The Create Generic

Application - Name your Application dialog is displayed.

3. Enter a name for the application in the Application Name field. For example,

AQQueue2Queue.