Retrieves a handle to a service object, for example, the FactoryFinder object in Weblogic Enterprise (WLE).
IIOP.bdh
IiopBeaServiceBind( in sHost : string; in nPort : number; in sService : string ): number;
Handle to service object if successful
0 if an error occurred
Parameter | Description |
---|---|
sHost | Host name where WLE/M3 is running |
nPort | Port where WLE/M3 is listening |
sService | Service name |
dcltrans transaction TBeaServiceBind const HOST := "192.168.20.21"; // server PORT := 1052; // port var hFactFinder : number; // handle to FactoryFinder object hFact : number; // handle to a factory object begin IiopSetMaxGiopVersion("1.2"); IiopSetByteOrder(IIOP_BIG_ENDIAN); // retrieve handle to service object hFactFinder := IiopBeaServiceBind(HOST, PORT, "FactoryFinder"); hFact := IiopBeaFactoryBind(hFactFinder, "IDL:SomeFactory:1.0"); // release objects IiopObjectRelease(hFactFinder); IiopObjectRelease(hFact); end TBeaServiceBind;
UnivB.bdf
You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba