Re: Lifetime management



Hi Iain,

On Sun, 2002-03-03 at 19:32, iain wrote:
> I have a program that starts up and gets two CORBA objects from
> bonobo-activation. It then keeps these objects around for the lifetime
> of the program and destroys them at the quit. 

	Sounds fine.

> Sometimes one of the CORBA programs quits (be it a crash, or
> bonobo-slay), and then my program has a duff object lying around. Is
> there any nice way (ORBit2) of detecting when a CORBA_Object dies

	Yes. Simply use:

	ORBit_simple_listen_for_broken (obj, my_cb, ev);

	Take into account this will only work for a client handle, ie. it will
only tell you when a remote impl. dies, not when a client of a local
server dies (for which there is no API).

	See orbit-small.h

> or do we have to do it the Evolution way of poking the object
> every so often and seeing if it responds?

	No - that sucks :-)

	Regards,

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]