Re: [Asterisk-java-users] "refreshing" AGI server on asterisk's reload
Brought to you by:
srt
From: wardsback <war...@no...> - 2006-07-20 10:31:26
|
On Thu, 20 Jul 2006 12:24:57 +0200, <to...@am...> wrote: > 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 o= f >> class changes. On first shot I just manually stopped and relaunched m= y >> AGIserver. >> Then I had the idea to use Asterisk's reload command and an AGImanage= r = >> 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 g= et >> 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 sha= re = >> your >> opinions on IT & business topics through brief surveys -- and earn ca= sh >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > > > > > ----------------------------------------------------------------------= --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to shar= e = > your > opinions on IT & business topics through brief surveys -- and earn cas= h > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > I'm indeed using Eclipse 3.2 on linux and as always fully satisfied with= = it :) |