Java CAPS Management and Monitoring APIs

Exercising the Installation Service

Before you can exercise the Installation Service, you must have aspectserviceengine.jar installed in your environment.


Caution – Caution –

Read the following carefully.


  1. A service engine named sun-aspect-engine attempts to stop, shutdown, and uninstall itself.

  2. The service engine then attempts to install sun-aspect-engine from the attached aspectserviceengine.jar.

  3. Before you run the Installation Service sample scripts, install aspectserviceengine.jar in your environment and start it.

  4. Change the script as you see fit to run in your environment.

Exercising the Installation Service in Groovy

The Groovy script for executing the Installation Service is attached in InstallationServiceTest.groovy. Modify the script to suit your needs before executing it in your environment/installation.

cd C:\JavaCAPS6\managementapienv.batcd scripting\groovy\scripts\groovy ServiceTest\InstallationServiceTest.groovy

If you are comfortable with the Swing-based groovyConsole, use it to load and execute the script file.

cd C:\scripting\groovy\scripts\env.batgroovyConsole