uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

8.5.7 Setting Up a Response Queue

The standard asynchronous reception (MDB (WS-R)) is a standard reception for asynchronous request messages, and thus is used, as a rule, when there is no response from a service component. However, when the asynchronous reception (MDB (WS-R)) sends a request to a synchronous service component (Web Services or SessionBean), a response may be returned from the synchronous service component in some cases. In such a case, by specifying a response queue (transmission queue) when making a request, the service requester can receive responses from a synchronous service component. For details about specifying a response queue when making a request, see 8.5.4 Specifying Parameters.

The standard asynchronous reception (MDB (WS-R)) sends an XML message (whose payload is TextMessage), which is a response from a synchronous service component, to the transmission queue. The response received by the transmission queue is sent to the receive queue. By extracting the response sent to the receive queue, you can acquire the response message from the service component. For details about response extraction, see 8.5.8 Extracting Responses.

The following shows the relationship among the standard asynchronous reception (MDB (WS-R)), the transmission queue, and the receive queue.

Figure 8-22 Relationship among the standard asynchronous reception (MDB (WS-R)), the transmission queue, and the receive queue

[Figure]

Transmission queue (response queue)
Create a transmission queue, which functions as a response queue, inside the J2EE server (Cosminexus RM) on which the HCSC server is running.
For the transfer destination (destination address) of the transmission queue, specify the receive queue. As needed, specify transmission queues at non-transfer destinations according to the user application.
For details about how to create transmission queues, see 8.5.2 Creating a Transmission Queue and the section related to transmission queues in the manual Cosminexus Application Server Cosminexus Reliable Messaging.

Receive queue (local queue)
Create a receive queue (local queue) inside the J2EE server (Cosminexus RM) on which the service requester is running.
Specify a receive queue according to the user application as needed.
For details about how to create receive queues, see the section related to local queues in the manual Cosminexus Application Server Cosminexus Reliable Messaging.