evgeni.rojkov at durr.com ()
2007-06-12 14:25:12 UTC
Dear Sir,
just a question to be sure I am doing the right things.
****
-> I develop server application supplying some interfaces using following:
orb1 = CORBA::ORB_init();
orb1->resolve_initial_references("RootPOA")
poa->activate_object(...);
poa->the_POAManager()->activate();
orb1->run();
****
-> This server acts as client calling some remote interfaces as well using
following:
orb2 = CORBA::ORB_init();
rootContext = orb2->resolve_initial_references("NameService");
obj = rootContext->resolve_str(...);
obj->doSomemting(...);
orb2->destroy();
****
-> To shutdown the appliction I call orb1->shutdown(true) (unblocking
orb1->run())
-> orb1->destroy() looks to be a part of shutdown()
-> Calls running by orb2 are canceled as well (exception handling is done)
-> Appication goes down (as desired :-)
****
-> Questions :
Is it the right way to shutdown an application having several activ ORBs doing
orb->shutdown() on one of them ?
Are some side effects possible ?
Kind Regards
Evgeni Rojkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070612/2756533e/attachment.htm
just a question to be sure I am doing the right things.
****
-> I develop server application supplying some interfaces using following:
orb1 = CORBA::ORB_init();
orb1->resolve_initial_references("RootPOA")
poa->activate_object(...);
poa->the_POAManager()->activate();
orb1->run();
****
-> This server acts as client calling some remote interfaces as well using
following:
orb2 = CORBA::ORB_init();
rootContext = orb2->resolve_initial_references("NameService");
obj = rootContext->resolve_str(...);
obj->doSomemting(...);
orb2->destroy();
****
-> To shutdown the appliction I call orb1->shutdown(true) (unblocking
orb1->run())
-> orb1->destroy() looks to be a part of shutdown()
-> Calls running by orb2 are canceled as well (exception handling is done)
-> Appication goes down (as desired :-)
****
-> Questions :
Is it the right way to shutdown an application having several activ ORBs doing
orb->shutdown() on one of them ?
Are some side effects possible ?
Kind Regards
Evgeni Rojkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070612/2756533e/attachment.htm