Contents Using the IOM Server Previous Next

Using the Java Workspace Factory

The SAS workspace is the highest-level component in the IOM object hierarchy, and connecting to a workspace object is the first step in using an IOM server. The WorkspaceFactory class provides methods for creating and connecting to a SAS workspace on an IOM server.

The Workspace Factory provides a consistent interface for connecting client programs to IOM servers through all the various permutations of communications technologies. While IOM servers are designed to integrate with many different communications technologies and support many different usage scenarios, the Workspace Factory hides these complexities. In addition, the Workspace Factory is flexible enough to support a Java client program from its early development stages through its deployment in a production environment.

In a Java client program, you can use either of two methods to supply the Java Workspace Factory with the information that it needs in order to connect to an IOM server:

The Java Workspace Factory can log diagnostic and status messages and write them to output for use in debugging or performance monitoring. For details, see Logging Java Workspace Factory Activity.

After you are finished using a workspace object that you have obtained from the Java Workspace Factory, you must return it to the factory by calling the close() method on the WorkspaceConnector. For details, see Returning a Workspace to the Workspace Factory. When you are done with the instance of the Java Workspace Factory itself and you no longer need to request workspace objects from it, you must shut it down by calling the shutdown() method or the destroy() method. For details, see Shutting Down the Java Workspace Factory. These processes are the same whether you are using connection pooling or making single connections, and whether you provide information about the IOM servers directly in your client program or indirectly using an LDAP directory server.

Contents Using the IOM Server Previous Next