This page last changed on Oct 10, 2010 by alitokmen.

Definition

Deploy an EJB (any version) that will be started when the container starts

Example using the Java API

Starting JOnAS 5.x with an EJB JAR to deploy:

InstalledLocalContainer container = new Jonas5xInstalledLocalContainer(
    new Jonas5xStandaloneLocalConfiguration("target/jonas5x"));
container.setHome("c:/jonas/jonas-5.1.2");

Deployable ejb = container.getDeployableFactory().createEJB(
    "src/data/some-ejb3.jar");
container.getConfiguration().addDeployable(ejb);

container.start();

Example using the Ant API

Starting JOnAS 5.x with an EJB JAR to deploy:

<cargo containerId="jonas5x" home="c:/jonas/jonas-5.1.2" action="start">
  <configuration>
    <ejb ejbFile="src/data/some-ejb3.jar"/>
  </configuration>
</cargo>
Document generated by Confluence on Jun 14, 2011 22:09