This page last changed on May 09, 2010 by alitokmen.
Definition
Deploy a Java EE resource adapter (RAR) that will be started when the container starts
Example using the Java API
Starting JOnAS 5.x with a RAR to deploy:
InstalledLocalContainer container = new Jonas5xInstalledLocalContainer(
new Jonas5xStandaloneLocalConfiguration("target/jonas5x"));
container.setHome("c:/jonas/jonas-5.1.2");
Deployable rar = container.getDeployableFactory().createRAR(
"src/data/mysql-5.1-localhost.rar");
container.getConfiguration().addDeployable(rar);
container.start();
Example using the Ant API
Starting JOnAS 5.x with a RAR to deploy:
<cargo containerId="jonas5x" home="c:/jonas/jonas-5.1.2" action="start">
<configuration>
<rar rarFile="src/data/src/data/mysql-5.1-localhost.rar"/>
</configuration>
</cargo>
|