IiopBeaFactoryBind Function

Action

Retrieves a handle to a factory object, for example, to the FactoryFinder object in Weblogic Enterprise (WLE).

Include file

IIOP.bdh

Syntax

IiopBeaFactoryBind( in hFF     : number;
                    in sIFName : string ): number;

Return value

  • Handle to factory object if successful

  • 0 if an error occurred

Parameter Description
hFF Handle to FactoryFinder object
sIFName Name of the factory to be located. This is supposed to be the interface repository string "IDL:<factoryname>:1.0"

Example

dcltrans
  transaction TBeaServiceBind
  const
    HOST := "192.168.20.21"; // server
    PORT := 1052; // port
  var
    hFactFinder : number; // handle to FactoryFinder
    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;

Sample scripts

UnivB.bdf

You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba