Setup for Java RMI clients

Before developing Java RMI clients for the SA API, perform the following steps:

  1. Install an SA core in a development environment. Do not use a production core.
  2. Obtain a development server where you will build and run the Java RMI client.
  3. On the development server, install the Java SE 7 SDK.
  4. Verify that the development server has a network connection to the SA core server that runs the OCC component.
  5. Download the opswclient.jar file from the SA core server to your development server. The opswclient.jar file contains the Java RMI stubs for the SA API. You include the opswclient.jar in the classpath option when compiling and running Java RMI clients.
  6. To download opswclient.jar do one of the following:
    1. Specify the following URL, where occ_host is the core server running the OCC component:

      https://occ_host/twister/opswclient.jar
    2. Go to the following directory: /opt/opsware/twist/extlib/client.

You also need the spinclient-latest.jar and the opsware_common-latest.jar files. These files can be obtained from a running SA Core in:

/opt/opsware/twist/lib/

You must also add these .jar files to the classpath parameter when compiling and running these examples.