Deployer's Guide

Target audience

The target audience for this guide is the deployer. The deployer is responsible for the deployment of Enterprise Beans and their containers in the EJB server.

Deployment process description

The deployment process consists of:

Deployment descriptors are written in XML, the deployer must use its favorite XML editor for editing it and the GenIC tool (provided with the JOnAS distribution) for the container classes generation process.

There is two XML deployment descriptors:

Example deploying using deployment descriptor in XML

Suppose that we want to customize the deployment of the AccountImpl bean in the JOnAS example examples/src/eb.
The customization wanted will be to change the name of the database table used for the persistence of the AccountImpl.

Example deploying using ejb-jar file

Back to the previous example

We have described step by step all the work to do to build the ejb-jar.jar file in order to explain all the process.

In fact in the $JONAS_ROOT/examples/src/eb directory there is a script compile.sh for unix or compile.bat for Windows that you can use.

If the GNU make is installed on your machine you can use the Makefile file you find in this directory.
You only have to type make install and all the process to build the ejb-jar.jar file and install it in the $JONAS_ROOT/ejbjars directory will be made.
In your real application you will have the choice to write your own script that will looks like the compile.sh or compile.bat, or to write a Makefile file that use the common makefile rules that are provided in the JOnAS distribution.
It is quite easy to understand how to change the Makefile file for your own purpose: