Re: [Asterisk-java-users] Instantiating a script
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-01-11 01:28:48
|
The other option is to use another MappingStrategy (either your own or the SimpleMappingStrategy that works with instantiated objects). I usually use AGI with the springframework and the SimpleMappingStrategy and let spring to the init stuff. =Stefan Jonathan Augenstine schrieb: > I had the same issue. You can do this by launching your own class > object before launching the asterisk-java AGI engine. Something like > the following will work. > > public static void main() { > // do your startup stuff > initialization(); > > DefaultAGIServer agi = new DefaultAGIServer(); > agi.startup(); > } > > Then you are off and running. > > Jonathan > > > On Tue, 2006-01-10 at 10:15 -0500, Vadim Berezniker wrote: > >>The AGI server first instantiates any given handler when a request for >>it comes in from asterisk. >>It would be nice if there was a way to have certain handlers be >>instantiated on startup. >>There are certain things I want to preload befor any calls come in. >>I don't want to the first call to be forced to wait until I'm done >>loading. >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://ads.osdn.com/?ad_idv37&alloc_id865&op=click >>_______________________________________________ >>Asterisk-java-users mailing list >>Ast...@li... >>https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |