String classID = Server.CLSID_SAS; String host = "foo.bar.abc.com"; int port = 1234; Server server = new BridgeServer(classID,host,port); ConnectionFactoryConfiguration cxfConfig = new ManualConnectionFactoryConfiguration(server);
ConnectionFactoryConfiguration cxfConfig = ... ConnectionFactoryManager cxfManager = new ConnectionFactoryManager(); ConnectionFactoryInterface cxf = cxfManager.getFactory(cxfConfig);
ConnectionFactoryInterface cxf= ... String userName = "myName"; String password = "mySecret"; ConnectionInterface cx = cxf.getConnection(userName,password);
ConnectionInterface cx = ... org.omg.CORBA.Object obj = cx.getObject(); com.sas.iom.SAS.IWorkspace iWorkspace = com.sas.iom.SAS.IWorkspaceHelper.narrow(obj);
close()
method on the connection. For details, see Closing a Connection to the Java Connection Factory. This process is the same whether you are using connection
pooling or making single connections. It is also the same whether
you provide information about the IOM servers directly in your client
program or indirectly using a metadata server.
shutdown()
method or the destroy()
method. For details, see Shutting Down the Java Connection Factory.