*** This class provides Binary Compatibility only, not Source Compatibility ***

Class ZeroConfigWorkspaceServer

All Implemented Interfaces:
Serializable, Cloneable

@SASScope("ALL") @BinaryCompatibilityOnly public class ZeroConfigWorkspaceServer extends BridgeServer
A server that IOM Bridge for Java will start and connect to. IOM Bridge for Java will look in the Windows registry for the SAS command and use it to start a workspace server, and it will connect to that workspace server. No Object Spawner nor Metadata server is required. The workspace server will always run under the same user ID as the Java process even if the program passes the user name and password of a different user in the getConnection(userName,password) method. Therefore, it is recommended that you use the getConnection() method with no arguments.

Typical usage:

 server = new ZeroConfigWorkspaceServer();
 config = new ManualConnectionFactoryConfiguration(server);
 manager = new ConnectionFactoryManager();
 factory = manager.getFactory(config);
 cred = new SecurityPackageCredential();
 cx = factory.getConnection(cred);
 try {...}
 finally {cx.close();}
 
See Also:
  • Constructor Details

    • ZeroConfigWorkspaceServer

      public ZeroConfigWorkspaceServer()
      Construct a zero-config workspace server.
    • ZeroConfigWorkspaceServer

      public ZeroConfigWorkspaceServer(String sasCommand)
      Construct a zero-config workspace server using the given command to start SAS.
      Parameters:
      sasCommand - the command to start SAS
  • Method Details

    • toURI

      public SASURI toURI(Credential credential, String cxID)
    • setSasCommand

      public void setSasCommand(String sasCommand)
      Set the sasCommand attribute. This is the command that will be used to start SAS.
      Parameters:
      sasCommand - the sasCommand attribute
    • getSasCommand

      public String getSasCommand()
      Get the sasCommand attribute. This is the command that will be used to start SAS.
      Returns:
      the sasCommand attribute
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class BridgeServer
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BridgeServer