10.7.1 Command syntax and description
You acquire the RMI-IIOP stubs and interfaces of J2EE applications that are imported into the J2EE server.
The RMI-IIOP stubs and interfaces of J2EE applications that are imported into the J2EE server cannot be acquired if the J2EE application has not been started even once.
Moreover, if Enterprise Beans containing the remote interface do not exist in the J2EE application, acquiring the RMI-IIOP stubs and interfaces results in an error.
Execute the following command to acquire the RMI-IIOP stubs and interfaces:
- Organization of this subsection
(1) Execution format
cjgetstubsjar [server-name] [-nameserver provider-URL] -name application-name -d storage-path-of-RMI-IIOP-stubs-and-interfaces
(2) Example of execution
cjgetstubsjar MyServer -name App1 -d temp
(3) Note
-
You can use this functionality only if the following conditions are fulfilled:
-
If the version of the application server has been upgraded and J2EE applications that were created before the version was upgraded exist on the J2EE server
-
If the name is not changed with the cjrenameapp command
-
-
You cannot acquire the RMI-IIOP stubs and interfaces based on index.html in the following cases:
-
If either the J2EE applications with runtime information or J2EE applications without runtime information are imported
-
If new J2EE applications are created
-
If the name is changed with the cjrenameapp command
-
-
When you change the name of the application for which application.xml is omitted, an application.xml is created. Therefore, the J2EE application for which the application name is changed will be same as the application with application.xml.
For details on the cjgetstubsjar command, see cjgetstubsjar (get RMI-IIOP stub and interface for application) in the uCosminexus Application Server Command Reference Guide.