[omniORB] orb shutdown
Luke Deller
ldeller@xplantechnology.com
Fri Jun 28 03:52:00 2002
Hi Bjorn,
I am worried that you have misunderstood what happens when "shutdown" is
called with the argument (wait_for_completion) being 0, so please let me try
to clarify.
The argument to "shutdown" only controls whether the calling thread is
blocked until the ORB shutdown is complete. In either case the ORB will
still wait for all requests to complete and then finish the shutdown. Is
this what you meant by 'graceful shutdown'?
Of course, the ORB should not be destroyed nor the process terminated until
the ORB has fully completed the shutdown. If you called "shutdown(0)" then
you need to wait for the main thread to return from the "run" function
before terminating.
Sorry if I misunderstood you.
Regards,
Luke.
bjorn rohde jensen wrote:
> Hi guys,
>
> I know, it is not required to wait for completion
> of outstanding requests. It is a fairly brutal way
> to shutdown a CORBA aware application in my opinion,
> which can result in SystemException on the client
> side and potentially inconsistencies between server
> and client states. I do not think, it is all that
> much work to perform a graceful shutdown instead.
> A matter of preference i guess.
>
> Yours sincerely,
>
> Bjorn
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@realvnc.com
> http://www.realvnc.com/mailman/listinfo/omniorb-list