Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For a Java class to be loaded and successfully executed, it must implement the JSMService interface as shown in this example:

public interface JSMService

...

{

...

  public void service ( JSMContainer container ) ;

...



public JSMResponse command ( JSMCommand command ) throws JSMException ;

...


}

The service method of the class is called when the service first loads. This method will only be called once, so the JSMContainer object should be saved for later access in the current service program. The JSMContainer object allows access to the service trace object, service resource object and service storage object. The container resource is currently not used.

The command method is called every time the JSM client program sends a command string.

...