Message-ID: <49113295.561.1369171629729.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_560_1025893694.1369171629728" ------=_Part_560_1025893694.1369171629728 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This feature is = only available for local contain= ers
First you need to create a container instance.
Once you have this contai=
ner instance, starting the container is as simple as calling the
t() method. Before doing this though you'll need to ensure you have =
defined the container's
home (if you're using a container in <=
a class=3D"unresolved" href=3D"#">standalone mode - It's not required f=
or containers in embedded mode).
Of course it you wish to statically deploy archives, you'll need to add = deployables to the container.=
It is important to note that the
hod will wait until the container is fully started before =
Starting Resin 3.x with no deployable:
Before being able to use the Cargo Ant tasks you need to =
register them against Ant. This is done by using the Ant
gt; element. See the Ant supp=
ort page. The action to start the container is specified using the
Startin= g Resin 3.x with no deployable:
<cargo= containerId=3D"resin3x" home=3D"c:/apps/resin-3.0.15" action=3D"start"/>= ;=09=09
For the Maven2/Maven plugin, ple= ase read: Star= ting and stopping a container.
By= default, the container started by CARGO is linked to CARGO's process; whic= h means that once the Java process that has started the container is finish= ed (be it via Java API, ANT or the Maven2/Maven3 plugin) the started contai= ner will also be killed.
In some cases, mostly if you want to use CAR=
GO as a "launcher script", you need the started container to &quo=
t;outlive" CARGO's process, i.e. that the started container keeps runn=
ing even after CARGO itself has terminated. This can be achieved by simply =
setting the property=C2=A0
, in the ANT tasks or Maven2/Maven3 plugin, the=C2=A0
awn property) to=C2=A0
Note that this featur= e is only available for standalone containers (i.e., not for embeded contai= ners).------=_Part_560_1025893694.1369171629728--