|
Foundation |
|
| |||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
OMRConnectionFactoryConfiguration | A connection factory configuration that describes a server or a pool of servers to connect to using meta data in an OMR server. |
Provides a connection factory configuation for use with a SAS Metadata Server.
The following code fragment demonstrates connection factory configuration using SAS Metadata Server.
String classID = Server.CLSID_SASOMI; String host = "metadata.abc.com"; int port = "1234"; String userName = "admin"; String password = "admin1"; Server metadataServer = new BridgeServer(classID,host,port); ConnectionFactoryConfiguration metadataConfig = new ManualConnectionFactoryConfiguration(metadataServer); ConnectionFactoryInterface cxf = ConnectionFactoryManager.getConnectionFactory(metadataConfig); ConnectionInterface cx = cxf.getConnection(userName,password); org.omg.CORBA.Object obj = cx.getObject(); IOMI iOMI = IOMIHelper.narrow(obj); String repositoryID = "A0000001.A1234567"; String logicalServerName = "myServer"; ConnectionFactoryConfiguration cxfConfig = new OMRConnectionFactoryConfiguration(iOMI,repositoryID,logicalServerName); |
|
Foundation |
|
| |||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |