uCosminexus Service Platform, Basic Development Guide
This subsection explains the workflow for creating a service requester that sends a request to the standard asynchronous reception (MDB (database queue)) to execute a service and invokes the service.
The creation workflow differs depending on whether the service requester is TP1/EE or JMS.
The following figure shows the workflow for creating a service requester that sends a request to the standard asynchronous reception (MDB (database queue)) to execute a service component and invokes the service component when the service requester is TP1/EE.
Figure 8-25 Service requester (TP1/EE) creation work flow (standard asynchronous reception (MDB (database queue)))
To send a request message to the standard asynchronous reception (MDB (database queue)), you create binary data. For details about binary data creation, see 8.6.4 Creating Binary Data (TP1/EE or JMS).
Assemble binary data by specifying the parameters that correspond to the individual tags in the binary data created in 8.6.1(1)(a) Binary data creation. For details about parameter specification, see 8.6.5 Specifying Parameters (TP1/EE or JMS).
Create a request message for requesting service component execution. For details about request message creation, see 8.6.6 Creating Request Messages (TP1/EE or JMS).
Use the API (database queue control) of TP1/EE to set, in the database where the shared receive queue is located, the binary data whose parameters were specified. For details about how to specify binary data in the shared receive queue, see 8.6.7 Specifying Binary Data in the Shared Receive Queue (TP1/EE).
To receive responses from a synchronous service component (Web Services or SessionBean), set up a response queue (shared receive queue). For details about how to set up a response queue, see 8.6.9 Setting Up a Response Queue (TP1/EE or JMS).
Using the API (database queue control) of TP1/EE, extract the response binary data by referencing the database in which the response queue (shared receive queue) is located. For details about response extraction, see 8.6.10 Extracting Responses (TP1/EE or JMS).
Acquire the response message from the extracted response. For details about response message acquisition, see 8.6.11 Acquiring Response Messages (TP1/EE or JMS).
The following figure shows the workflow for creating a service requester that sends a request to the standard asynchronous reception (MDB (database queue)) to execute a service component and invokes the service component when the service requester is JMS.
Figure 8-26 Service requester (JMS) creation work flow (standard asynchronous reception (MDB (database queue)))
Create a shared transmission queue necessary for sending a request message from the service requester (JMS). For details about creating a shared transmission queue, see 8.6.2 Creating a Shared Transmission Queue (JMS).
Create a QueueSender object and a JMS message in order to send a request to the asynchronous reception (MDB (database queue)) for service component execution. For details about QueueSender object and JMS message creation, see 8.6.3 Creating JMS Messages (JMS).
To send a request message to the asynchronous reception (MDB (database queue)), you create binary data. For details about binary data creation, see 8.6.4 Creating Binary Data (TP1/EE or JMS).
Assemble binary data by specifying the parameters that correspond to the individual tags in the binary data created in 8.6.1(2)(c) Binary data creation. For details about parameter specification, see 8.6.5 Specifying Parameters (TP1/EE or JMS).
Create a request message for requesting service component execution. For details about request message creation, see 8.6.6 Creating Request Messages (TP1/EE or JMS).
Send a JMS message with binary data set as its payload to the shared transmission queue. For details about JMS message transmission, see 8.6.8 Sending JMS Messages (JMS).
To receive responses from a synchronous service component (Web Services or SessionBean), set up a response queue (shared transmission queue). For details about how to set up a response queue, see 8.6.9 Setting Up a Response Queue (TP1/EE or JMS).
From the response queue (shared transmission queue), extract the response sent to the shared receive queue. For details about response extraction, see 8.6.10 Extracting Responses (TP1/EE or JMS).
Acquire the response message from the extracted response. For details about response message acquisition, see 8.6.11 Acquiring Response Messages (TP1/EE or JMS).
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.