uCosminexus Service Platform, Basic Development Guide

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

8.6.1 Service Requester (Standard Asynchronous Reception (MDB (Database Queue))) Creation Procedure

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.

Organization of this subsection
(1) In TP1/EE
(2) In JMS

(1) In TP1/EE

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)))

[Figure]

(a) Binary data creation

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).

(b) Parameter specification

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).

(c) Request message creation

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).

(d) Specifying binary data in the shared receive queue

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).

(e) Response queue setup

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).

(f) Response extraction

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).

(g) Response message acquisition

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).

(2) In 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)))

[Figure]

(a) Creating a shared transmission 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).

(b) Creating a JMS message

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).

(c) Binary data creation

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).

(d) Parameter specification

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).

(e) Request message creation

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).

(f) JMS message transmission

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).

(g) Response queue setup

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).

(h) Response extraction

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).

(i) Response message acquisition

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).