If you create a client with your EJB using the Interface Mapping Toolkit, the necessary deployment descriptors are automatically generated. You do not need to create them manually.
If you need to create deployment descriptors, either use the administration tool provided by your J2EE application server or generate a sample and edit that. In both cases you need to specify the following information in the depoyment descriptor:
JNDI name | Reference name | |
---|---|---|
J2EE 1.3 | eis\MFCobol_v1.0 | CCIMFCobol_v1.0 |
J2EE 1.4 | eis\MFCobol_v1.5 | CCIMFCobol_v1.5 |
To create deployment descriptors from dummy ones:
The descriptors are packaged in the myService.ear file in the folder repos/myService.deploy. The following descriptors are generated:
jar -xvf JMapServ-WS.ear JMapServ.jar JMapServ.war jar -xvf JMapServ-WS.ear META-INF/ibm-application-bnd.xmi jar -xvf JMapServ-WS.ear META-INF/ibm-application-ext.xmi jar -xvf JMapServ.jar META-INF/ibm-ejb-jar-bnd.xmi jar -xvf JMapServ.jar META-INF/ibm-ejb-jar-ext.xmi jar -xvf JMapServ.war WEB-INF/ibm-ejb-web-bnd.xmi jar -xvf JMapServ.war WEB-INF/ibm-ejb-web-ext.xmi
For WebLogic, a weblogic-application.xml file is not required.
Descriptor | Directory |
---|---|
*application*.xm? | my-ear-dir\meta-inf |
*ejb-jar*.xm? | my-jar-dir\meta-inf |
*web*.xm? | my-war-dir\web-inf |
jar -uvf myService.ear META-INF/myAppServer-application.xml jar -uvf myService.jar META-INF/myAppServer-ejb-jar.xml jar -uvf myService.war WEB-INF/myAppServer-web.xml
jar -uvf myService.ear myService.jar myService.war
Note
Deployment descriptors are automatically created for the supported application servers that are listed in Servers > Settings on the EJB Generation tab in the Application server field.