uCosminexus Service Platform, Basic Development Guide

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

8.5.1 Procedure for Creating a Service Requester (Standard Asynchronous Reception (MDB (WS-R))

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

[Figure]

The tasks in the individual steps are described below.

Organization of this subsection
(1) Creating a transmission queue
(2) Creating a JMS message
(3) Parameter specification
(4) Request message creation
(5) JMS message transmission
(6) Response queue setup
(7) Response extraction
(8) Response message acquisition

(1) Creating a transmission queue

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.

(2) Creating a JMS message

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.

(3) Parameter specification

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.

(4) Request message creation

Create a request message for requesting service component execution. For details about request message creation, see 8.5.5 Creating Request Messages.

(5) JMS message transmission

Send the JMS message to the transmission queue. For details about JMS message transmission, see 8.5.6 Sending JMS Messages.

(6) Response queue setup

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.

(7) Response extraction

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.

(8) Response message acquisition

Acquire the response message from the extracted response. For details about response message acquisition, see 8.5.9 Acquiring Response Messages.