<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=160155212-05052008>Hello folks,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=160155212-05052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=160155212-05052008>Someone just asked the same question on our
Asterisk-Java users mailing list. I posted a small blog entry at <A
href="http://asterisk-java.org/">http://asterisk-java.org/</A> about doing
AGI (FastAGI) in a JBoss MBean. I think no matter what language, it is going to
be better to do FastAGI than spawn a new process every time -- in which case a
Java daemon may even be able to outperform more traditional languages as it
optimizes at runtime :).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=160155212-05052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=160155212-05052008>Cheers,</SPAN></FONT></DIV>
<DIV> </DIV><!-- Converted from text/plain format -->
<P align=left><FONT size=2>Martin Smith, Systems
Developer<BR>martins@bebr.ufl.edu<BR>Bureau of Economic and Business
Research<BR>University of Florida<BR>(352) 392-0171 Ext. 221</FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of
</B>chetherston miles<BR><B>Sent:</B> Sunday, May 04, 2008 4:22
AM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial
Discussion<BR><B>Subject:</B> Re: [asterisk-users] AGI asterisk high
balance<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hey Matt,</DIV>
<DIV> </DIV>
<DIV>What make me choice, or thinking in choose JAVA-AGI so far i know there
is a way of using with a container (jboss or something like that) so the
requests come as an servlet request.</DIV>
<DIV> </DIV>
<DIV>Someone had this kind of env?</DIV>
<DIV> </DIV>
<DIV>Thanks<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>On 5/3/08, <B class=gmail_sendername>Matt
Watson</B> <<A href="mailto:mwatson@becon.org">mwatson@becon.org</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV lang=EN-US link="blue" vlink="purple">
<DIV>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">There is really no reason
why you cannot.</SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d"></SPAN> </P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Personally… I'd avoid using
Java for AGI's that you think are going to receive heavy use… simply because
the JVM adds a lot of overhead, and possibly a very real performance impact
from having the load the JVM everytime. Of course there is overhead as
well if you do PHP instead, as the PHP interpreter has to load everytime…
but that's probably pretty light-weight in comparison to the JVM.</SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d"></SPAN> </P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Of course you could compile
your Java code to native binaries to work around that problem, but I have no
experience doing that.</SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d"></SPAN> </P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Please keep in mind that I
have not actually created or used any Java AGI's… really just my thoughts
without any experience.</SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d"></SPAN> </P><SPAN
class=sg>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">--</SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Matt</SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d"></SPAN> </P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P><B><SPAN style="FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt"> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:asterisk-users-bounces@lists.digium.com"
target=_blank>asterisk-users-bounces@lists.digium.com</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:asterisk-users-bounces@lists.digium.com"
target=_blank>asterisk-users-bounces@lists.digium.com</A>] <B>On Behalf Of
</B>chetherston miles<BR><B>Sent:</B> Saturday, May 03, 2008 6:30
PM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial
Discussion<BR><B>Subject:</B> [asterisk-users] AGI asterisk high
balance</SPAN></P></DIV></SPAN>
<DIV><SPAN class=e id=q_119b15c924ec9198_2>
<P> </P>
<P>Hello,</P>
<DIV>
<P> </P></DIV>
<DIV>
<P>Is there a problem to use AGI JAVA to write an AGI to billing calls and
customer accounts?</P></DIV>
<DIV>
<P> </P></DIV>
<DIV>
<P>Anyone have experience with it could give me some tips?</P></DIV>
<DIV>
<P> </P></DIV>
<DIV>
<P>Thanks,</P></DIV>
<DIV>
<P> </P></DIV></SPAN></DIV></DIV></DIV><BR>_______________________________________________<BR>--
Bandwidth and Colocation Provided by <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.api-digital.com/"
target=_blank>http://www.api-digital.com</A> --<BR><BR>asterisk-users
mailing list<BR>To UNSUBSCRIBE or update options visit:<BR> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>