Re: IOR parsing



Marc Siegel wrote:

Hi,

When parsing IOR's with ORBit, the "file://" form does not work. This form works in MICO and TAO.

yes, you are right, file:// is not supported,
1.) is not recommended for CORBA compliance,
2.) support for file:// and http:// would introduce security risks, reading source of object reference should be handled by user code.


For conveniance ORBit2 supports form of object reference like

iiop::host:port/object-name

When parsing IOR's with ORBit, if the .ref file is not present, an uncaught exception occurs. In MICO and TAO, IIRC, a "nil" CORBA object is returned that can then be tested with CORBA::is_nil() to give a graceful error message.

This is due to C-language-mapping, ORBit2 is pure C code, please test for NIL object in C like style:


if (objref==CORBA_OBJECT_NIL) {
   /* handle NIL object */
}

Regards,
Frank




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]