![]() |
|||||
|
EAR layoutThe following example shows the EAR layout that is used to deploy the provided lab example on JBoss. The EAR includes the container specific files jboss.xml to assign JNDI names to the EJBs. Please refer to Practical Deployment on JBoss Application Server for more detailed information about the JBoss deployment. Example 7-1. Example EAR layout META-INF (directory) MANIFEST.MF application.xml gateways.jar (ejb jar file) META-INF (directory) MANIFEST.MF ejb-jar.xml jboss.xml lab.jar (ejb jar file) META-INF (directory) MANIFEST.MF ejb-jar.xml jboss.xml org/openmdx/example/lab1/plugin/jmi/overriding/solution (directory) LabPlugin.class PersonImpl.class GroupImpl.class lib (directory) openmdx-example-lab1.jar openmdx-application.jar It is recommended that all the shared libraries are put into the lib directory of the EAR. The manifest files in gateways.jar and lab.jar are used to indicate the required libraries by means of specifying the manifest class path. The following manifest file example shows how to reference the libraries openmdx-application.jar and openmdx-example-lab1.jar from within lab.jar. Example 7-2. Example manifest file Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.0 Created-By: 1.3.1_10-b03 (Sun Microsystems Inc.) Class-Path: lib/openmdx-application.jar lib/openmdx-example-lab1.jar For more details please refer to the provided lab example. |
||||