uCosminexus Service Platform, Basic Development Guide

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

8.4.1 Procedure for Creating a Service Requester (Standard Synchronous Reception (SessionBean))

This subsection explains how to create a service requester that sends a service component execution request to a standard synchronous reception (SessionBean) and invokes a service component. The creation workflow is shown in the following figure.

Figure 8-16 Service requester creation work flow (standard synchronous reception (SessionBean))

[Figure]

The tasks in the individual steps are described below.

Organization of this subsection
(1) Stub acquisition
(2) Instance generation
(3) Parameter specification
(4) Request message creation
(5) Response message acquisition
(6) Error information acquisition

(1) Stub acquisition

From the HCSC Component Information Display screen in the development environment, acquire the stub that corresponds to the J2EE server (JNDI name) to which the HCSC server is deployed. For details about stub acquisition, see 8.4.2 Acquiring Stubs.

(2) Instance generation

To invoke the method of the synchronous reception (SessionBean), create an Enterprise Bean instance from the stub acquired in (1). For details about instance creation, 8.4.3 Creating Instances.

(3) Parameter specification

Specify the parameters that become the arguments of the method of the synchronous reception (SessionBean). For details about parameter specification, see 8.4.4 Specifying Parameters.

(4) Request message creation

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

(5) Response message acquisition

Acquire a response message corresponding to the service component execution request from the synchronous reception (SessionBean). For details about response message acquisition, see 8.4.6 Acquiring Response Messages.

(6) Error information acquisition

If an error occurs at the request-destination service component, the HCSC server, or the EJB container, acquire the error information and take corrective action according to the information. For details about error information acquisition, see 8.4.7 Acquiring Error Information.