15.4. Deploying and Installing a J2EE Application

Before deploying a J2EE application in the JOnAS application server, first package its components in an EAR file as explained in Chapter 23 EAR Packaging.

For Apache ANT, refer to the target EAR in the $JONAS_ROOT/examples/earsample/build.xml file.

Next, install the EAR file into the $JONAS_ROOT/apps directory.

Then, check the configuration. Before running the application, check that the ejb, web and ear services are present in the jonas.services property.

The name of the EAR file can be added in the jonas.service.ear.descriptors section.

Finally, run the application Server:

jonas start

The application components are deployed in EJB and web containers created during the startup. If the EAR file was not added in the jonas.service.ear.descriptors list, the application components can be dynamically deployed using the jonas admin command or JonasAdmin tool.