6 2 2 JSMContainer Interface

LANSA Integrator

6.2.2 JSMContainer Interface

 

public interface JSMContainer

{

  public JSMTrace getServiceTrace () ;

  public JSMStorage getServiceStorage () ;

  public JSMResource getServiceResource () ;

  public JSMResource getContainerResource () ;

}

 

The JSMContainer object allows the service program to gain information about its environment.

The JSMStorage object allows the service program to store objects. This storage will be valid across a SERVICE_LOAD and SERVICE_UNLOAD command. The storage object is valid between a JSM open and close. When the JSM closes the storage object is lost. The storage object is never null.

The JSMTrace object allows the service program to output tracing information. If the trace object is null, then tracing has been disabled.

The JSMResource object returned from the getServiceResource method is the resource file associated with the service program. This resource object is never null, if a resource properties file has not been assigned or does not exist then an empty resource object is supplied.

The JSMResource object returned from the getContainerResource is not used yet.