Re: how to shutdown a CORBA server without the client getting a disconnect
- From: ciaran.mchale@xxxxxxxx
- Date: Tue, 14 Aug 2007 16:16:23 -0000
On 13 Aug, 13:56, ap...@xxxxxxxxxxxxxxxxxx wrote:
I found that when I have a shutdown method in my IDL and I invoke it
in a CORBA client and the servers implementation is to immediately
shutdown, the client rcvs a disconnect exception. To get around this I
made the shutdown on the impl class set a flag and I changed the
server so its CORBA event loop had a timeout. This enabled it to poll
that flag. But the timeout was using a proprietary extension of Orbix.
I am using jacORB now which does not not have this. So I was
wondering,l what is the standard way for a server to shutdown in an
orderly way without the client that invoked the shutfown experiencing
a disconnect?
The implementation of the shutdown() IDL operation should call
orb.shutdown(false), where "orb" is the ORB previously created by
calling ORB.init() or CORBA::ORB_init() (depending on whether you are
using Java or C++).
Invoking orb.shutdown(false) will have the effect of causing the
orb.run() operation to gracefully terminate when all the currently
executing requests have finished.
Regards,
Ciaran.
.
- Follow-Ups:
- References:
- Prev by Date: Re: help needed with OrbixWeb BOA version
- Next by Date: Re: how to shutdown a CORBA server without the client getting a disconnect
- Previous by thread: how to shutdown a CORBA server without the client getting a disconnect
- Next by thread: Re: how to shutdown a CORBA server without the client getting a disconnect
- Index(es):
Relevant Pages
|