Enqueue Message Messaging Scenarios

10-18 Oracle Fusion Middleware Users Guide for Technology Adapters specified that it has to be segmented, then the single message can be broken into that many bytes the queue can take, which results in more than one message. ■ Expiry : The expiry time of the message. The message is discarded after the expiry time has elapsed. For more information about these properties, see Section 10.4.2, Message Properties . The next Adapter Configuration Wizard page that appears is the Messages page, as shown in Figure 10–9 . This page enables you to select the XML Schema Definition XSD file for translation. Figure 10–9 Messages Page If native format translation is not required for example, a JPG or GIF image is being processed, then select the Native format translation is not required check box. The file is passed through in base-64 encoding. XSD files are required for translation. If you want to define a new schema or convert an existing data type description DTD or COBOL Copybook, then select Define Schema for Native Format . This starts the Native Format Builder wizard. This wizard guides you through the creation of a native schema file from file formats, such as delimited by special characters, comma-separated value CSV, fixed-length, DTD, and COBOL Copybook. After the native schema file is created, you are returned to this Messages page with the Schema File URL and Schema Element fields filled in. For more information, see Section 6.1, Creating Native Schema Files with the Native Format Builder Wizard . Note: Ensure that the schema you specify includes a namespace. If your schema does not have a namespace, an error message appears. Oracle JCA Adapter for MQ Series 10-19

10.4.1.2 Dequeue Message

In this scenario, the Oracle MQ Series Adapter connects to a specific queue managed by a queue manager and then removes the message from the queue. For inbound messages sent to Oracle BPEL PM or Mediator, the Oracle MQ Series Adapter performs the following operations:

1. Connects to the queue specified at design time.

2. Dequeues the message from the queue when a message arrives.

3. Reads and translates the message based on the translation logic defined at design

time.

4. Publishes the message as an XML message to Oracle BPEL PM or Mediator.

Figure 10–10 displays the operation type that you must select in the Adapter Configuration Wizard. Figure 10–10 The Adapter Configuration Wizard: Consume Message Selection The page that appears after selecting the Get Message from MQ operation type is shown in Figure 10–11 . 10-20 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 10–11 Get Message from MQ Page You can specify the following properties in this page: ■ Queue Name : The name of the queue from which the Oracle MQ Series Adapter will dequeue the message. This is a mandatory field. ■ Schema Options : This option allows you to specify the schema for the message to be dequeued. – Choose Other Schema : This option allows you to choose your schema for the message to be dequeued. – Choose a Predefined Schema : This option allows you to choose a readymade schema that the adapter provides. The next Adapter Configuration Wizard that appears is the Messages page, as shown in Figure 10–9 . This page enables you to select the XSD schema file for translation. As with specifying the schema for the produce message operation, you can perform the following tasks in this page: ■ Specify if native format translation is not required. ■ Select the XSD schema file for translation. ■ Start the Native Format Builder wizard to create an XSD file from file formats such as CSV, fixed-length, DTD, and COBOL Copybook. For more information about the Messages page, see Section 10.4.1.1, Enqueue Message .

10.4.1.3 Asynchronous Request-Response Oracle BPEL PM As Client

In this scenario, the Oracle BPEL PM sends a request message and receives the corresponding response using a non-initiating receive activity. The invoke activity initiates the outbound invocation of the adapter to send the request. The Oracle MQ Series Adapter performs the following operations: Oracle JCA Adapter for MQ Series 10-21 1. Receives message from Oracle BPEL PM. 2. Formats the XML content as specified at design time in the Adapter Configuration Wizard. 3. Sets properties and a correlation schema on the request message. 4. Sends the message to the queue specified at design time. The third-party application receives the message, processes it, generates the response, and then enqueues the response message to the replyTo queue specified in the request message. The Correlation ID and Message ID of the response message are generated on the basis of the correlation schema specified in the request message. 5. The Oracle MQ Series Adapter dequeues the message from the replyTo queue. 6. Sends the response to the non-initiating receive activity of Mediator. To ensure that response is sent to the correct BPEL instance, correlation schemas are used. Figure 10–12 displays the operation type that you must select in the Adapter Configuration Wizard. Figure 10–12 Selecting an Operation Type The page that appears after selecting the Send Message to MQ and Get ReplyReports operation type is shown in Figure 10–13 .