uCosminexus Application Server, Web Container Functionality Guide
When using the Enterprise Beans invocation, before deploying the corresponding Web application, acquire the RMI-IIOP stubs (stubs.jar) and the RMI-IIOP interface from the J2EE server, and save in the WEB-INF/lib directory of the Web application.
Change the stub names appropriately before saving the stubs (stubs.jar) of multiple RMI-IIOP in the WEB-INF/lib directory to avoid the duplication of names.
Note that you can use the dynamic class loading of J2EE server for the RMI-IIOP stubs. For dynamic class loading, see 3.7.3 Dynamic class loading in the uCosminexus Application Server EJB Container Functionality Guide.
When invoking an EJB from WAR, you need to define ejb-ref in the DD of WAR. If, however, you use annotations to define the references, you need not define the reference in web.xml. When invoking EJBs of the same application from WAR, you need not include stubs and remote interface in the WAR.
When invoking EJBs running on different application or different J2EE server from WAR, remote interface and stubs are necessary. Specify settings to include the remote interface in WAR and auto-generate the stubs when the J2EE application is started in the execution environment. For details on the execution environment settings, see 2.11.3 Execution environment settings (J2EE server settings).
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.