You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mikel Gonzalez Gainza <fi...@gmail.com> on 2012/10/09 22:15:44 UTC
Apache, Tomcat and Comet
Hi all!
First of all, thanks for reading :-) Let me describe you the problem I'm
having, but first let me show you the environment everything is running on:
Machine 1:
- Apache Tomcat 7.0.30,
- Linux Fedora, kernel 2.6.32.26
- Various web applications running under Tomcat, one of them being a COMET
application.
Machine 2:
- Apache Web Server
- Windows
- mod_jk connecting to Machine1's tomcat server
So. I know mod_jk is not compatible with comet and I've heard that my best
chance would be to use mod_proxy and mod_proxy_http instead. But! How would
that affect the rest of the applications? Is it smart changing from mod_jk
to mod_proxy when all other web applications run just fine? Is it possible
to use both at the same time? I dont think this one is possible since, even
though you can configure which URLs get redirected with mod_proxy, you'd
need different connectors in tomcat! Is that even possible?
Ideal thing would be to add mod_proxy (without removing mod_jk) so my Comet
application runs without problem, adding another connector for it and,
depending on which web application is accessed, use one connector or the
other. Is that possible? Sorry if these are silly questions but I'm not too
familiar with this kind of configuration.
Thanks again!!
Why is it that we rejoice at a birth and grieve at a funeral? It is
because we
are not the person involved.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
Re: Apache, Tomcat and Comet
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mikel,
On 10/9/12 4:15 PM, Mikel Gonzalez Gainza wrote:
> Is it smart changing from mod_jk to mod_proxy when all other web
> applications run just fine? Is it possible to use both at the same
> time?
Yes, you can use mod_jk and mod_proxy_ajp (or mod_proxy_http)
side-by-side. Just make sure that you map your URLs properly and
you'll be fine.
> I dont think this one is possible since, even though you can
> configure which URLs get redirected with mod_proxy, you'd need
> different connectors in tomcat! Is that even possible?
You can set up as many connectors in Tomcat as you want: it's just
more port numbers. You can even have them all share the same
<Executor> so you have a single thread pool for everything, regardless
of protocol.
> Ideal thing would be to add mod_proxy (without removing mod_jk) so
> my Comet application runs without problem, adding another connector
> for it and, depending on which web application is accessed, use one
> connector or the other. Is that possible? Sorry if these are silly
> questions but I'm not too familiar with this kind of
> configuration.
That should be no problem: just add another <Connector> on another
port and configure mod_proxy to connect to that port.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlB0kDIACgkQ9CaO5/Lv0PAjugCffxpTNUUDqhyNaVFf9qa11IUH
VXQAnjVDFvxtBopctoL17udi9iY9EL4A
=rGqm
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org