This chapter is for the application deployer.
This chapter assumes that the Enterprise Bean provider followed the Enterprise Beans Programmer's Guide and packaged the beans' classes together with the deployment descriptors in a EJB-JAR file. To deploy un-packed Enterprise Beans, refer to Section 3.5.2 Configuring the EJB Container Service.
To deploy the Enterprise Beans in JOnAS, the deployer must add the interposition classes interfacing the EJB components with the services provided by the JOnAS application server.
The Chapter 6 JOnAS Command Reference tool supplied in the JOnAS distribution provides the capability of generating interposition classes and updating the EJB-JAR file.
The application deployer may also need to customize the deployment descriptors in order to adapt it to a specific operational environment. This must be done before using GenIC.
The deployer may choose to deploy the Enterprise Beans as stand-alone application components, in which case the EJB-JAR must be installed in the $JONAS_ROOT/ejbjars directory. The deployer may also choose to include them in WAR or EAR packaging, which is presented in the following sections.
Once the packaging of the application components has been completed as described in the Chapter 18 WAR Packaging or Chapter 23 EAR Packaging guides, the obtained archive file must be installed in the:
$JONAS_ROOT/webapps directory, for WAR files
$JONAS_ROOT/apps directory, for EAR files