[omniORB] how to identify when client gets disconnected from
server?
bjorn rohde jensen
bjensen@fastmail.fm
Tue Oct 8 20:27:00 2002
Hi Sveta,
I am not quite sure, i understand your question.
Basically you want a shutdown method for the server?
Why not just use a method in a server administration
interface, that invokes orb->shutdown(false) ? That
should initiate a gracefull orb shutdown shutting
down all POA's and objects in the process.
Letting clients be responsible for the life cycle
of CORBA objects is sort of asking for trouble, as it
is a well known fact, that clients misbehave:) It
is better to use some sort of evictor pattern, where
clients may inform the server, that they are done
with the object, but the servers evictor only uses
that as a hint. The clients should be prepared to
handle object references becoming invalid. One could
call it a fault tolerance feature:)
OmniORB does not as such have something like event
handlers or reactors for public use at least. Just
look the pattern up in a book and implement it, it
should not be so hard, i think. OmniORB is intended
to be small and fast (and sexy :)) and not a generic
OOP toolbox;)
Yours sincerely,
Bjorn