uCosminexus Service Platform, Basic Development Guide
This subsection explains how to create a service requester that sends a service component execution request to a standard asynchronous reception (MDB (WS-R)) and invokes a service component. The creation workflow is shown in the following figure.
Figure 8-20 Service requester creation work flow (standard asynchronous reception (MDB (WS-R))
The tasks in the individual steps are described below.
Create a transmission queue needed for sending a request message from the service requester. For details about transmission queue creation, see 8.5.2 Creating a Transmission Queue.
Create a QueueSender object and a JMS message in order to send a request to the asynchronous reception (MDB (WS-R)) for service component execution. For details about QueueSender object and JMS message creation, see 8.5.3 Creating JMS Messages.
Specify parameters for the JMS message created in 8.5.1(2) Creating a JMS message. For details about parameter specification, see 8.5.4 Specifying Parameters.
Create a request message for requesting service component execution. For details about request message creation, see 8.5.5 Creating Request Messages.
Send the JMS message to the transmission queue. For details about JMS message transmission, see 8.5.6 Sending JMS Messages.
To receive a response from a synchronous service component, set up a response queue (transmission queue). For details about response queue setup, see 8.5.7 Setting Up a Response Queue.
Extract the response that was sent from the response queue (transmission queue) to the receive queue. For details about response extraction, see 8.5.8 Extracting Responses.
Acquire the response message from the extracted response. For details about response message acquisition, see 8.5.9 Acquiring Response Messages.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.