[asterisk-users] agi with java?

Chris Bagnall lists at minotaur.cc
Fri Jun 8 13:18:33 CDT 2007


> Java is not a great solution for AGIs because they are script you should
> fire up and terminate very fast, while the overhead of launching a JVM,
> loading all classes, etc, is pretty large. Also, you don't want multiple
> JVMs in parallel loading everything multiple times.

How about writing your AGIs in JSP? In that case, you could leave a VM (+Tomcat) running, and the AGIs would simply use the existing in-memory VM.

Java does actually scale much better than many other environments once you take away the cost of instantiating the VM for each execution.

Regards,

Chris
-- 
C.M. Bagnall, Director, Minotaur I.T. Limited
For full contact details visit http://www.minotaur.it/chris.html
This email is made from 100% recycled electrons




More information about the asterisk-users mailing list