tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: jk or jk2
Date Thu, 30 Oct 2003 19:38:35 GMT

I actually use the warp connector ( to connect to my tomcat
server in most cases. The upside is that it simple to implement.  The
downside is that it no longer being developed.  As far as the connectors jk
vs jk2 go I would probably recommend using jk2 unless you are committed to
an old version of apache.

Another option is to not use connectors at all, use mod_rewrite and do a
reverse proxy.  Here is an example of what I have done in apache to reverse
proxy request to an application server backend.

  <VirtualHost *>
   DocumentRoot /www/pub/tmp
   ErrorLog /usr/local/apache/logs/YourVirtual_errors.log
   CustomLog /usr/local/apache/logs/YourVirtual_access.log combined

   ProxyRequests on
   RewriteEngine on

   RewriteLog /usr/local/apache/logs/unsecured_rewrite.log
   #change the log level to 2 or 3 for production
   RewriteLogLevel 9

   RewriteRule ^/$$1 [NC,P]

Here is a nice article on using proxy and rewrite to connect to an
application server backend.

Cary Anderson
Webteam, IT
CA Dept of Transportation
Sacramento, California
(916) 654-3629
(916) 769-7689

                           Ebeling       To:     Tomcat Users List <>
                    <febeli@yahoo.       cc:                                          
                               de>       Subject:     Re: jk or jk2                   
                          04:55 AM                                                       
                    Please respond                                                       
                        to "Tomcat                                                       
                       Users List"                                                       


mod_jk2 is more or less undocumented. If you dont't want to dive into
the C sources, be careful. mod_jk comes with quite solid descriptions.


Bernhard Erdmann wrote:
> Cory 'G' Watson wrote:
>> If starting a new _production_ setup, should I be using jk or jk2?
>> I've seen conflicting information in my searches.
> I recommend mod_jk2 for apache2. I discovered mod_jk does not forward
> properly requests by their JSESSIONID to the right servlet engine in a
> two tomcat loadbalanced setup.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message