Re: [Asterisk-java-users] "refreshing" AGI server on asterisk's reload
Brought to you by:
srt
From: <to...@am...> - 2006-07-20 10:26:47
|
Fred, It is not directly related to your question, but are you using an IDE such as Eclipse? That will greatly speed up your development if you are not already using one. Tony Quoting wardsback <war...@no...>: > Hi there guys > > I'm now doing some more tests. > > Successfully running an AGI server and starting to play with scripts. > > As I'm often modifying my main Java class (the one that gets called > accordingly to fastAGI mappings), I need the AGI server to be aware of > class changes. On first shot I just manually stopped and relaunched my > AGIserver. > Then I had the idea to use Asterisk's reload command and an AGImanager in > wich I watch for "net.sf.asterisk.manager.event.ReloadEvent" events. > So each time such an event is recieved, I decided to shutdown current > server, spawn a new one, and start it up. > This way of doing does work (only once, though. i.e. server doesn't get > shutdown and respawned on subsenquent Asterisk's "reloads"). Plus, > something tells me I'm not doing it the "right" way. Any hints ? > > -- > Fred > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |