Re: [D4J-info] Graceful Shutdown
Brought to you by:
cgm8
From: Carlos G M. <tr...@hu...> - 2004-04-13 10:17:54
|
Tony, D4J is thought after a server model, and the "Dialogic" thread (I assume the event polling thread in windows or the work thread in linux) is needed for any activity, so it never ends. It is marked as daemon, so it will be terminated by the VM when/if there is no other non-daemon thread alive. On the other hand, this has no impact on a channel activity. Closing a channel should terminate all activity on the channel and interrupt the service thread, which is normally the one looking for incoming calls. So if you do close all open channels and terminate any other threads you may have started including the main thread, the VM should exit. It works for me :-) -Carlos Tony Seebregts wrote: > Hi, > > Is there an elegant way to shut down an analog channel that is waiting > for an incoming call (i.e. waiting for rings) ? > > channel.close() doesn't seem to terminate the Dialogic thread so the > application doesn't exit. Runtime.exit() does work but its a brute force > solution. > > Tony Seebregts > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > D4J-info mailing list > D4J...@li... > https://lists.sourceforge.net/lists/listinfo/d4j-info > -- Carlos G Mendioroz <tr...@hu...> LW7 EQI Argentina |