[Asterisk-Dev] Java based AGI

Michael J. Wood mwoodj at knology.net
Mon Oct 27 07:11:29 MST 2003


You can remove the virtual machine problem by compiling the java to
machine code. Take a look at http://gcc.gnu.org/java/
GCJ (Gnu Compiler for Java) is included in Redhat 9 I believe. I have
used it and it works great (though it defeats the portability purposes
of Java... but were working with Linux here right.)

On Mon, 2003-10-27 at 07:20, Alastair Maw wrote:
> On 27/10/03 12:39, Johanna Kangas wrote:
> > I have made several AGIs with Java, based on the documentation in
> > http://home.cogeco.ca/~camstuff/agi.html
> 
> I don't know about your application EXEC problem, and I don't wish to 
> sound discouraging, but I feel the need to point something out here...
> 
> Java is *not* something you should be using for AGI scripts. This isn't 
> a language holy war thing (I code Java all day). It's simply that having 
> the whole of the Java virtual machine start up for every AGI script you 
> call is really very very nasty. Don't expect the machine to take any 
> load whatsoever, particularly if you don't have much RAM in it.
-- 
Michael J. Wood <mwoodj at knology.net>




More information about the asterisk-dev mailing list