Hello everyone,
I have agi server running that will load different classes based on the
fastagi-mapping file. But i need the server to reload the changes made
to the fastagi-mapping file without shutting down the agi server.
Any ideas of how i can accomplish this?
thanks
Eric
itgasterisk wrote:
> I have agi server running that will load different classes based on the
> fastagi-mapping file. But i need the server to reload the changes made
> to the fastagi-mapping file without shutting down the agi server.
What is the goal you want to achieve with this?
> Any ideas of how i can accomplish this?
Write your own MappingStrategy that supports a reloadable resource
bundle and pass it to your AgiServer.
=Stefan
--
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail: ste...@re...
Jabber: ste...@re...
WWW: http://www.reucon.com
Steuernummern 215/5140/1791 USt-IdNr. DE220701760
The goal is to reload new agiscripts that gets deployed to the server
without having to restart the agiserver.
Do you know where i can find example of implementing MappingStrategy?
thanks
eric
Stefan Reuter wrote:
> itgasterisk wrote:
>
>> I have agi server running that will load different classes based on the
>> fastagi-mapping file. But i need the server to reload the changes made
>> to the fastagi-mapping file without shutting down the agi server.
>>
>
> What is the goal you want to achieve with this?
>
>
>> Any ideas of how i can accomplish this?
>>
>
> Write your own MappingStrategy that supports a reloadable resource
> bundle and pass it to your AgiServer.
>
> =Stefan
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Asterisk-java-users mailing list
> Ast...@li...
> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
>
itgasterisk wrote:
> The goal is to reload new agiscripts that gets deployed to the server
> without having to restart the agiserver.
Maybe an alternative is to use the class name of your agi script in the
dialplan. example:
Agi(agi://localhost/com.example.scripts.MyAgiScript)
Then you don't even need the properties file.
> Do you know where i can find example of implementing MappingStrategy?
There are a few MappingStrategies in the org.asteriskjava.fastagi
package. Just download the source (or check it out from svn) and use one
of the existing strategies as a starting point.
=Stefan
--
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail: ste...@re...
Jabber: ste...@re...
WWW: http://www.reucon.com
Steuernummern 215/5140/1791 USt-IdNr. DE220701760