Discussion:
[omniORB] [Q] how to properly shutdown
V S P
2009-04-23 14:52:46 UTC
Permalink
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
***@fastmail.fm
--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are
V S P
2009-04-23 23:49:56 UTC
Permalink
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'
Post by V S P
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
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
--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
V S P
***@fastmail.fm
--
http://www.fastmail.fm - The way an email service should be
Loading...