You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sebastiaan van Erk <se...@sebster.com> on 2007/06/23 12:51:52 UTC

Tomcat, Comet and Apache

Hi all,

I wrote a Comet servlet for Tomcat, and am ready to deploy it. However, 
my "normal" mode of deployment, namely Apache + mod_jk in front of 
Tomcat no longer works in this situation because Comet requires the NIO 
or APR connectors, which do not support mod_jk. I also tried using 
mod_proxy to proxy requests to the Comet servlet, however mod_proxy 
buffers, which breaks Comet.

I was wondering if there is a good solution to this problem.

I'm ok with using Tomcat as the main server, but then I'm wondering does 
Tomcat have the equivalent of a mod_proxy so that I can service legacy 
pages (php, etc) from Apache?

My preferred solution however would leave Apache as the main server 
since the sheer number of useful modules for apache (rewrite, etc.) 
makes it very nice to have it in front of Tomcat.

Any tips or ideas are welcome!

Thanks,
Sebastiaan van Erk

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat, Comet and Apache

Posted by Sebastiaan van Erk <se...@sebster.com>.
Hi,

Thanks for the reply.

Turns out that in apache 2.2 there is a flushpackets option in 
mod_proxy. I'll have to upgrade since it's not available in 2.0. I 
missed it because it's not an actual directive but an option to the 
ProxyPass directive (I was looking at ProxyIOBufferSize).

|Regards,
Sebastiaan

|Filip Hanik - Dev Lists wrote:
> my only guess would be to turn off buffering in mod_proxy, if that is 
> possible
>
> Filip
>
> Sebastiaan van Erk wrote:
>> Hi all,
>>
>> I wrote a Comet servlet for Tomcat, and am ready to deploy it. 
>> However, my "normal" mode of deployment, namely Apache + mod_jk in 
>> front of Tomcat no longer works in this situation because Comet 
>> requires the NIO or APR connectors, which do not support mod_jk. I 
>> also tried using mod_proxy to proxy requests to the Comet servlet, 
>> however mod_proxy buffers, which breaks Comet.
>>
>> I was wondering if there is a good solution to this problem.
>>
>> I'm ok with using Tomcat as the main server, but then I'm wondering 
>> does Tomcat have the equivalent of a mod_proxy so that I can service 
>> legacy pages (php, etc) from Apache?
>>
>> My preferred solution however would leave Apache as the main server 
>> since the sheer number of useful modules for apache (rewrite, etc.) 
>> makes it very nice to have it in front of Tomcat.
>>
>> Any tips or ideas are welcome!
>>
>> Thanks,
>> Sebastiaan van Erk
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat, Comet and Apache

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
my only guess would be to turn off buffering in mod_proxy, if that is 
possible

Filip

Sebastiaan van Erk wrote:
> Hi all,
>
> I wrote a Comet servlet for Tomcat, and am ready to deploy it. 
> However, my "normal" mode of deployment, namely Apache + mod_jk in 
> front of Tomcat no longer works in this situation because Comet 
> requires the NIO or APR connectors, which do not support mod_jk. I 
> also tried using mod_proxy to proxy requests to the Comet servlet, 
> however mod_proxy buffers, which breaks Comet.
>
> I was wondering if there is a good solution to this problem.
>
> I'm ok with using Tomcat as the main server, but then I'm wondering 
> does Tomcat have the equivalent of a mod_proxy so that I can service 
> legacy pages (php, etc) from Apache?
>
> My preferred solution however would leave Apache as the main server 
> since the sheer number of useful modules for apache (rewrite, etc.) 
> makes it very nice to have it in front of Tomcat.
>
> Any tips or ideas are welcome!
>
> Thanks,
> Sebastiaan van Erk
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org