Database Reference
In-Depth Information
Finally, make sure to change to the %ORACLE_HOME%\bin directory before run-
ning any of the ant commands:
cd %ORACLE_HOME%\bin
All ant commands in the remainder of this chapter will be Linux based. For
Windows, simply replace the Linux specific environment variables such as
$USERNAME and $SOAHOST with their Windows equivalent of %USERNAME%
and %SOAHOST% . Also ensure that the slashes are reversed in the code
paths.
For
example,
$CODE/HelloWorld/deploy/
in
Linux
would
be
sca_HelloWorld_rev1.0.jar
%CODE%\HelloWorld\deploy\sca_HelloWorld_rev1.0.jar in
Win-
dows.
Starting and stopping composites with ant
Once you set the environment, you can start up a composite on Linux by running
the following command:
ant -f ant-sca-mgmt.xml startComposite -Duser=$USERNAME -Dpassword=$PASSWORD -Dhost=$SOAHOST -Dport=$SOAPORT -DcompositeName=HelloWorld -Dpartition=default -Drevision=1.0
Likewise, you can stop a composite on Linux using the following:
ant -f ant-sca-mgmt.xml stopComposite -Duser=$USERNAME -Dpassword=$PASSWORD -Dhost=$SOAHOST -Dport=$SOAPORT -DcompositeName=HelloWorld -Dpartition=default -Drevision=1.0
You must also specify the composite name, the partition name it is deployed to,
and the revision of the composite you wish to start up and shut down.
Packaging,
deploying,
and
undeploying
composites with ant
The commands in the following sections demonstrate how to package the Hel-
loWorld composite project. This creates a deployable JAR file under the pro-
Search WWH ::




Custom Search