[PolyORB-users] Understanding CORBA packages

Maciej Sobczak prog at msobczak.com
Thu May 15 16:52:34 CEST 2008


Hello,

The example server code contains the following:

      Root_POA := PortableServer.POA.Helper.To_Local_Ref
        (CORBA.ORB.Resolve_Initial_References
         (CORBA.ORB.To_CORBA_String ("RootPOA")));

The thing that bothers me is that CORBA.ORB does not define 
To_CORBA_String. Also, the expected type for Resolve_Initial_References 
is CORBA.ORB.ObjectId and there is no function providing relevant 
conversion.
Yet, the above compiles fine.

I would rather expect the following:

      Root_POA := PortableServer.POA.Helper.To_Local_Ref
        (CORBA.ORB.Resolve_Initial_References
         (CORBA.ORB.ObjectId (CORBA.To_CORBA_String ("RootPOA"))));


Could you please explain the above?

Regards,

-- 
Maciej Sobczak * www.msobczak.com * www.inspirel.com


More information about the PolyORB-users mailing list