uCosminexus Application Server, EJB Container Functionality Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
(1) For an Enterprise Bean running in another application on the same J2EE server
To invoke the Enterprise Bean:
- Include the business interface of the invoked Enterprise Bean as well as the user-created classes used in the interface in the invoking EJB-JAR file or the WAR file.
- If none is specified for the ejbserver.rmi.localinvocation.scope key in the user-defined file for J2EE server, acquire the stubs by using the cjgetstubsjar command for the invoked Enterprise Bean and include these stubs in the invoking EAR file.#
The Enterprise Bean is looked up without using the EJB references. The format for specifying the lookup name is as follows:
HITACHI_EJB/SERVERS/server-name/EJBBI/J2EE-APP-name/Enterprise-Bean-name
server-name: J2EE server name
J2EE-APP-name: Lookup name of the J2EE application
Enterprise-Bean-name: Lookup name of the Enterprise Bean
- #
- If you use the dynamic class loading functionality for invocation of the business interface between applications, you need not include the stubs. However, Hitachi does not recommend the use of the dynamic class loading functionality from the point of view of performance.
(2) For an Enterprise Bean running on another J2EE server
To invoke the Enterprise Bean:
- Include the business interface of the invoked Enterprise Bean as well as the user-created classes used in the interface in the invoking EJB-JAR file or the WAR file.
- Acquire the stubs by using the cjgetstubsjar command for the invoked Enterprise Bean and include these stubs in the invoking EAR file.#
The Enterprise Bean is looked up without using the EJB references. The format for specifying the lookup name is as follows:
HITACHI_EJB/SERVERS/server-name/EJBBI/J2EE-APP-name/Enterprise-Bean-name
server-name: J2EE server name
J2EE-APP-name: Lookup name of the J2EE application
Enterprise-Bean-name: Lookup name of the Enterprise Bean
- #
- If you use the dynamic class loading functionality for invocation of the business interface between applications, you need not include the stubs. However, Hitachi does not recommend the use of the dynamic class loading functionality from the point of view of performance.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.