Enqueue—Using a JMS JCA Adapter or Custom Utilities JMS Dequeue

23-4 Oracle Fusion Middleware Users Guide for Oracle B2B

e. In the Remote JNDI Name field, enter Queuesqueue_name if the

destination is a queue, or enter Topicstopic_name if the destination is a topic. For example, the default name for an AQ queue created for the Oracle B2B - Oracle BAM integration is QueuesB2B_BAM_QUEUE.

f. Click OK.

7. Restart Oracle WebLogic Server.

23.4 Create a B2B Data Object using Oracle BAM Architect

To create a B2B data object: 1. Log in to Oracle BAM at the following URL: http:host_name:port_numberOracleBAM The default port number is 9001.

2. Select Architect to open the Oracle BAM Architect application.

3. Select Data Objects in the drop down list.

4. Select the Samples folder, and create a subfolder named B2B.

5. Click on the Create Data Object link

6. Enter B2BDO in the Name field.

7. Click Add a Field.

8. Enter values for Fields in Data Object.

9. Repeat, clicking Add a Field to add all fields as listed in

Table 23–2 . For more information about creating Oracle BAM data objects, see Defining and Managing Oracle BAM Data Objects in Oracle Fusion Middleware Developers Guide for Oracle SOA Suite.

23.5 Define a JMS Message Source Using an Oracle BAM Enterprise Message Source

To define a JMS message source: 1. Log in to Oracle BAM at the following URL: http:host_name:port_numberOracleBAM The default port number is 9001.

2. Select Architect to open the Oracle BAM Architect application.

3. Select Enterprise Message Sources in the drop down list.

4. Click Create, and enter the Enterprise Message Source information for AQ JMS

Queue as indicated in Table 23–1 , leaving unmentioned fields with default or blank entries. Monitoring Instance Message Data With Oracle BAM 23-5

5. To configure Source Value Formatting, check the DateTime Specification

checkbox, and select the MMddyy H:mm:ss format in the drop-down list.

6. Complete the Source to Data Object Field Mapping so that data from the

incoming XML can be mapped to an appropriate field in the B2B data object. See Table 23–2 for a list of fields in the incoming XML which will be retrieved from the B2B instance table.

7. Click Save.

8. Select the B2B_EMS Enterprise Message Source, and click Start. The status changes

to Started in a few seconds. After starting the Enterprise Message Source, any messages that are inserted by the database job into the AQ JMS queue are instantly available in the B2BDO data object. To view the contents of the B2BDO data object, select Data Objects from the Oracle BAM Architect drop-down menu. Browse and select the B2BDO object. Click Contents to view the contents. New rows are inserted into B2BDO as the database job reads incoming messages from the B2B instance table and inserts them onto the AQ JMS queue. For more information on creating Oracle BAM Enterprise Message Sources, see Creating Oracle BAM Enterprise Message Sources in Oracle Fusion Middleware Developers Guide for Oracle SOA Suite. Table 23–1 Enterprise Message Source Properties for AQ JMS Queue Property Values and Examples Name Enter a display name for the Enterprise Message Source for example, B2B_EMS. Initial Context Factory Enter weblogic.jndi.WLInitialContextFactory JNDI Service Provider URL Enter t3:localhost:9001 Note: If Oracle BAM is installed is on an Administrator Server use port 9001. If Oracle BAM is installed on a managed server use default port 7001, or the port number configured by the system administrator. TopicQueue Connection Factory Name Enter the name of your connection factory for example, jmsBAMAQQueueCF. TopicQueue Name Enter the name of your JJMS topic or queue for example, jmsBAMAQQueue. Data Object Name: Choose the B2B data object to send the values received from AQ JMS server Operation Choose the Insert or Upsert operation, depending on the use case. Note: The incoming XML value for the date, in the format MMddyy HH24:MI:SS, must be converted into the MMddyy H:mm:ss format that the Enterprise Message Source expects so that it can be stored correctly in the data object