[omniORB] Problem with Creating object with simple object keys
Arup Choudhury
arup.choudhury@onfiber.com
Mon, 26 Nov 2001 10:28:39 -0600
Hello :
I am trying to create POA with name "omniINSPOA" and I am getting an
exception when I try to to activate the object.
My code looks like following :
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv, "omniORB3" );
CORBA::Object_var obj = orb->resolve_initial_references( "omniINSPOA"
);
PortableServer::POA_var ins_poa = PortableServer::POA::_narrow( obj );
MyObject_i * myObj = new MyObject_i();
PortableServer::ObjectId_var myMetroBuilderInterfaceid =
ins_poa->activate( myObj );
I am getting a CORBA exception in activate() call. Please let me know what I
am doing wrong.
Thanks in advance.
Arup