Re: [Asterisk-java-devel] integrating asterisk
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-01-24 01:10:48
|
Sebastian, >=20 > I=FFm planning to integrate your component in a webapp hosted probably > in JBoss or Websphere. Considering that it=FFs kind of =B4not permitted= =A1 > to host a component that manages its own thread (creation and > pooling), I am researching the best way to integrate it. it is not correct that components running in an j2ee environment are generally not permitted to create and manage their own threads. When only running a servlet container I usually create an AGIServerThread on startup using the <listener> element in web.xml and I am not aware of any section of the servlet spec that prohibits that. What indeed is prohibited is to spawn threads in your EJBs. But there is no need to do so when using Asterisk-Java. > I analyzed (superficially) your code and I think that transforming the > AGIConnectionHandler in a servlet would be a possible approach. A servlet usually speaks HTTP and follows a request/response semantic where FastAGI uses a proprietary protocol and requires a dedicated TCP connection per session. I don't think both have that much in common that it would be an easy way to go. =3DStefan |