In the Create Copy Operation dialog, select Expression from Type and specify

Oracle JCA Adapter for MQ Series 10-115

f. Click OK in the Create Copy Operation dialog. The Assign dialog is displayed

as shown in Figure 10–97 . Figure 10–97 The Assign Dialog

g. Click OK. The BPELProcess.bpel page is displayed.

8. Set the header properties by using the following steps:

a. Double-click the invoke activity. The Invoke dialog is displayed.

b. Click the Browse Partner Links icon to the right of the Partner Link field. The

Partner Link Chooser page is displayed.

c. Select the outbound service and click OK.

d. Click the Auto-Create Variable icon to the right of the Variable field under the

General tab. The Create Variable dialog is displayed.

e. Select the default variable name and click OK. The Variable field is populated

with the default variable name.

f. Click the Properties tab.

g. Select a property from the Properties column and set the Value accordingly.

For example, select the jca.mq.MQMD.Format property from the Properties column and set the Value as MessageFormat. Ensure that the Type column is set to input, as shown in Figure 10–98 . Note: if you want to create a user folder, then you must first assign the value to a String variable, then go to Properties in the Invoke activity and then map this String value to the property jca.mq.RFH2.USRFolder. 10-116 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 10–98 The Invoke Dialog

h. Click OK. The BPELProcess.bpel page is displayed.

i. Click the Properties tab. The BPELProcess.bpel page is displayed.

10.6.6.5 Deploying with JDeveloper

You must deploy the application profile for the SOA project and application you created in the earlier steps. For more information about deploying the application profile using JDeveloper, see Section 2.8, Deploying Oracle JCA Adapter Applications from JDeveloper . You must also create an application server connection. For more information about creating an application server connection, see Section 2.7, Creating an Application Server Connection for Oracle JCA Adapters .

10.6.7 Configuring a Backout Queue

This use case demonstrates how a backout queue must be configured for Oracle MQ Series Adapter. Oracle MQ Series Adapter dequeues a message and enqueues the same message after transformation from the MQ Series queue. During this process, a failure can occur either during an invoke activity or when a response is being sent. You must configure a Backout Queue to send the rejected messages to a Backout Queue instead of the default rejected messages folder. This section contains the following topics: ■ Section 10.6.7.1, Prerequisites ■ Section 10.6.7.2, Designing the SOA Composite ■ Section 10.6.7.3, Creating an Inbound Adapter Service ■ Section 10.6.7.4, Creating an Outbound Adapter Service ■ Section 10.6.7.5, Wiring Services and Activities ■ Section 10.6.7.6, Deploying with JDeveloper ■ Section 10.6.7.7, Monitoring Using the Fusion Middleware Control Console Oracle JCA Adapter for MQ Series 10-117

10.6.7.1 Prerequisites

To perform the use case for configuring a backout queue, you must ensure that the adapter JNDI is configured for XA. Also, you require the singleString.xsd file, which you can create using the following code: schema attributeFormDefault=unqualified elementFormDefault=qualified targetNamespace=http:xmlns.oracle.comsingleString xmlns=http:www.w3.org2001XMLSchema element name=singleString complexType sequence element name=input type=string sequence complexType element schema

10.6.7.2 Designing the SOA Composite

You must create a JDeveloper application to contain the SOA composite. To create an application and a project for the use case, perform the following:

1. In JDeveloper, click File and select New.

The New Gallery dialog is displayed.

2. Expand the General node, and select the Applications category.

3. In the Items list, select Generic Application and click OK. The Create Generic

Application Wizard is displayed. 4. In the Name Your Application screen, enter MQ_BackoutQ_Retry in the Application Name field, and then click Next. The Name Your Project screen is displayed.

5. In the Project Name field, enter SOA_BackoutQ_Retry and from the Available

list, select SOA and click the right-arrow button. 6. Click Next. The Configure SOA Settings screen is displayed. 7. In the Composite Template list, select Composite With BPEL, and then click Finish . The Create BPEL Process dialog is displayed.

8. Enter BPELProcess_BackoutQ_Retry in the Name field, and select Define

Service Later from the Template box.

9. Click OK. The MQ_BackoutQ_Retry application and the SOA_BackoutQ_Retry

project appears in the design area.

10.6.7.3 Creating an Inbound Adapter Service

Perform the following steps to create an adapter service that will dequeue the message and put the message to a queue:

1. Drag and drop MQ Adapter from the Component Palette into the Exposed

Services swim lane. The Adapter Configuration Wizard Welcome page is displayed.

2. Click Next. The Service Name page is displayed.

3. Enter InboundService in the Service Name field, and click Next. The MQ Series

Connection page is displayed.