[omniORB] [Q] how to properly shutdown

V S P toreason at fastmail.fm
Thu Apr 23 14:49:54 BST 2009


found the answer in Vinoski book
orb->shutdown(true)
cannot be invoked from within a 'corba' method
instead it should be
orb->shutdown(false)

otherwise the method that's invoking the shutdown will be
considered 'deadlocked'

On Thu, 23 Apr 2009 04:52 -0400, "V S P" <toreason at fastmail.fm> wrote:
> hi,
> 
> I am calling
> 
> orb->shutdown(true)
> from within a servant method.
> 
> 
> 
> The servant method is called by my 'utility client'
> that is responsible for shutting things down
> 
> I see during debugging (Omni 4.1.3 win32)
> that
> 
> the utility client invokes 
> shutdown_all (my method name) 
> the server goes into that method
> then invokes orb->shutdown()
> 
> Then I see client gettin exception
> Caught a CORBA::SystemException:
> 
>  BAD_INV_ORDER_WouldDeadLock"    
> 
> And I see that it is the server that has thrown it 
> (because I saw the same thing on the server console window)
> 
> I am assuming that it is because I cannot call orb->shutdown
> from within the an object method ?
> 
> And the the question is, what is the recommended way of shutting things
> down by a remote command?
> 
> 
> thank you in advance
> 
> 
> 
> -- 
>   V S P
>   toreason at fastmail.fm
> 
> -- 
> http://www.fastmail.fm - Access all of your messages and folders
>                           wherever you are
> 
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
-- 
  V S P
  toreason at fastmail.fm

-- 
http://www.fastmail.fm - The way an email service should be




More information about the omniORB-list mailing list