[omniORB] Problem with command line parameters from omniORB 403 to 407

janssen.h at atlas.de janssen.h at atlas.de
Wed Jan 18 11:37:20 GMT 2006


Hello all,

 

I have a problem with the command line parameters between omniORB 403
and 407. The following source code extraction should help to understand
what my problem is:

 

01 CORBA::ORB_ptr orb = CORBA::ORB_init(argc, argv);

02 CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");

03 PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);

04 Test *myTest = new Test();

05 PortableServer::ObjectId_var myID = poa->activate_object(myTest);

06 SocketTestInterface_var myTestRef = myTest->_this();

07 obj = orb->resolve_initial_references("NameService");

08 CosNaming::NamingContextExt_var initial_ctx =
CosNaming::NamingContextExt::_narrow(obj);

 

I use the following command line parameters for omniORB 403 and it works
properly:

-ORBInitRef NameService=corbaloc::192.168.0.42:10001/NameService
-ORBendPoint giop:tcp:192.168.0.42:10001 -ORBgiopMaxMsgSize 50000000

 

When I try these parameters in omniORB 407 I get an error in line 08.
The method _narrow doesn't work no longer. 

 

Thank you for your time 

Heiko 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060118/e8d23910/attachment.htm


More information about the omniORB-list mailing list