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 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))
The tasks in the individual steps are described below.
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.
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.
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.
Create a request message for requesting service component execution. For details about request message creation, see 8.4.5 Creating Request Messages.
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.
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.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.