[omniORB] string_to_object question

EDWARD_LIN edward_lin@iwin.com.tw
Wed Mar 5 02:15:03 2003


Hello all,
I don't use TAO, but according to the book of 'Advanced CORBA Programming
with C++' by Michi Henning & Steve Vinoski, the function string_to_object()
can only accept stringified object reference, otherwise, it throws
exception!

Best Regards,
Edward


> Hi all,
>
> I noticed I can't write the following code:
>
>         CORBA::Object_var obj = orb->string_to_object("file://ns.ior");
>
> if I wanted to read in the name service IOR. This is allowed in TAO but I
> get a "bad param" error when I run this. Is this not acceptable in
omniORB?
> And if this is not allowed, then I assume the URL form of this is also not
> allowed.