B.5 Deployer Utility Examples

These examples show how to use the Deployer utility.

In all the examples, Oracle Stream Analytics is running on host ariel, listening at port 9002, and the user name/password of the server administrator is oepadmin/welcome1, respectively. For clarity, the examples are shown on multiple lines; however, when you run the command, enter all arguments and commands on a single line.

java -jar wlevsdeploy.jar 
     -url http://ariel:9002/wlevsdeployer -user wlevs -password wlevs
     -install /application/bundles/com.my.exampleApp_1.0.0.0.jar

The preceding example shows how to install an OSGi bundle called com.my.exampleApp_1.0.0.0.jar, located in the /application/bundles directory.

The next command shows how to resume this application after it has been suspended:

java com.bea.wlevs.deployment.Deployer 
     -url http://ariel:9002/wlevsdeployer -user wlevs -password wlevs
     -resume exampleApp

The next example shows how to uninstall the application, which removes all traces of it from the domain directory:

java com.bea.wlevs.deployment.Deployer 
     -url http://ariel:9002/wlevsdeployer -user wlevs -password wlevs
     -uninstall exampleApp

The following example shows how to install an application called strategies_1.0.jar to the strategygroup; this example also shows how to use the -jar command of the java utility:

java -jar wlevsdeploy.jar 
     -url http://ariel:9002/wlevsdeployer -install strategies_1.0.jar 
     -group strategygroup