Chapter 3. Deployment

Table of Contents

Deployment in JOnAS
Deployment in JBOSS
Deployment in Geronimo

After EAR generation, EAR file is placed in <shark_install_dir>/EJB directory along with all necessary data.

After generation, EAR must be placed in EJB container and deployed.

Deployment in JOnAS

For this container, EAR (sharkejb-jonas.ear) should be placed in <jonas_root>/apps directory and deployed by using JOnAS admin tool (URL http://localhost:9000/jonasAdmin).

By default, username for JOnAS admin is "jonas", and password is also "jonas".

When admin application appears, go to Domain -> Server JOnAS -> Deployment ->Applications (EAR). Then, on Deployment card, choose sharkejb-jonas.ear and deploy it.

The another way for EAR deployment is to place EAR in directory defined by jonas.service.ear.autoloaddir parameter in <jonas_root>/conf/jonas.properties file. By default, the value of this parameter is autoload, so, EAR should be placed in <jonas_root>/apps/autoload directory and the EARs placed in this directory will be deployed by the JOnAS Server at launch time.