Re: [Asterisk-java-users] New to asterisk Java
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-04-21 21:32:00
|
Hi Jason & welcome :), Asterisk-Java is typically (1) run standalone or (2) hosted inside an application server "container." In either case, it assumes the same thing that called the start methods on it will also shut it down. Most containers have hooks for startup and shutdown that you can use for starting and stopping A-J's AGI server. If you're running this server standalone, then yes, CTRL-C or killing the process would work, or you could work in a shutdown function to your wrapper code. In other words, whatever started it should stop it. I believe the default server provided by A-J can only be stopped by killing process, though. Hope that helps, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Jason J Burich > Sent: Monday, April 21, 2008 4:16 PM > To: ast...@li... > Subject: [Asterisk-java-users] New to asterisk Java > > Hello all, > > I'm just getting things started with Asterisk-Java. I'm probably > missing something terribly obvious, but how do you shutdown > the server. > While in development I simply ctrl-c to kill the process. > When we go to > production I'm sure we can just look for and kill the process, but I'm > wondering if there is anything more elegant? I see the > DefaultAgiServer > has a shutdown method, which I'm guessing gets called when I cntrl-c, > but I don't see any way to call that. > > Thanks, > Jason > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to > save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > .sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |