You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nick Williams <ni...@puresafety.com> on 2011/03/22 13:56:08 UTC

Pros and Cons of JK Connector vs. ARR

I’m working on designing a new production environment for our software, and
I’m curious about the best approach to take.



One of the plans we are testing out is to use IIS7 on Windows Server 2008 R2
with Tomcat 6.0.32 (with APR / tcnative enabled). However, we are a bit
confused as to the best approach to take.



On the one hand, we could use the Apache JK Connector to direct requests to
Tomcat. On the other hand, since we’re using IIS7, we could use (and have
seen recommended) the Application Request Routing (ARR) library for IIS to
direct requests for Tomcat.



I was hoping members of the list would chime in and tell us what you think
the pros and cons are of each solution, and/or why you’d pick one over the
other.



If I understand it correctly, AJP connections can be kept alive between JK
and Tomcat, resulting in significant performance gains, but that is not the
case with ARR (over HTTP), right? Making that an advantage of JK over ARR?



Also, the Apache Portable Runtime is only useful over HTTP and not AJP,
right? Making that an advantage of ARR over JK?



Please correct any misunderstandings on my part.



Thanks in advance!



Nick

Sent from my iPhone

RE: Pros and Cons of JK Connector vs. ARR

Posted by Nick Williams <ni...@puresafety.com>.
Thanks for the info, André! I will be certain to check to make sure ARR
covers all of our needs. We don't use domain user IDs, but that makes me
suspicious that there could be other things ARR doesn't forward that we DO
rely on.

Of course, if anyone has any other empirical or anecdotal information, I'd
still like to hear it.

N

--
Nick Williams, Senior Software Developer
PureSafety - Protecting Your People, Preserving Your Profits™

Toll Free: 888.202.3016 x177  |  Direct: 615.277.3177  |  Fax:
615.367.3887
730 Cool Springs Blvd. Suite 400 | Franklin, TN 37067 | www.puresafety.com


Learn How We Can Empower You. View Our Demos.


-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com]
Sent: Tuesday, March 22, 2011 12:03 PM
To: Tomcat Users List
Subject: Re: Pros and Cons of JK Connector vs. ARR

Nick Williams wrote:
...
>
>
> On the one hand, we could use the Apache JK Connector to direct requests
to
> Tomcat. On the other hand, since we’re using IIS7, we could use (and
have
> seen recommended) the Application Request Routing (ARR) library for IIS
to
> direct requests for Tomcat.
>
As it happens, I just went through an exercise trying to use the Microsoft
proxying
modules.  This was not a "proxy to Tomcat" case, and your needs may be
different, but I
happened to bounce on the issue described here :

http://forums.iis.net/t/1163866.aspx

(I needed to be able to pass the authenticated Windows domain user-id to
the back-end
server; that is something which mod_jk does, but which ARR seems to have
trouble doing).

In other words, I would check very carefully if really all your needs are
covered by ARR,
before you invest too much time into it.

Additional OT info : in the end, for my needs, I ended up using the IIS
add-on
Isapi_Rewrite module from HeliconTech.  It is a reasonable clone of the
mod_rewrite/mod_proxy Apache httpd functionality, although not as complete
either.
But for my needs this time it was sufficient.
YMMV

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

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


Re: Pros and Cons of JK Connector vs. ARR

Posted by André Warnier <aw...@ice-sa.com>.
Nick Williams wrote:
...
> 
> 
> On the one hand, we could use the Apache JK Connector to direct requests to
> Tomcat. On the other hand, since we’re using IIS7, we could use (and have
> seen recommended) the Application Request Routing (ARR) library for IIS to
> direct requests for Tomcat.
> 
As it happens, I just went through an exercise trying to use the Microsoft proxying 
modules.  This was not a "proxy to Tomcat" case, and your needs may be different, but I 
happened to bounce on the issue described here :

http://forums.iis.net/t/1163866.aspx

(I needed to be able to pass the authenticated Windows domain user-id to the back-end 
server; that is something which mod_jk does, but which ARR seems to have trouble doing).

In other words, I would check very carefully if really all your needs are covered by ARR, 
before you invest too much time into it.

Additional OT info : in the end, for my needs, I ended up using the IIS add-on 
Isapi_Rewrite module from HeliconTech.  It is a reasonable clone of the 
mod_rewrite/mod_proxy Apache httpd functionality, although not as complete either.
But for my needs this time it was sufficient.
YMMV

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


Re: Pros and Cons of JK Connector vs. ARR

Posted by Mark Thomas <ma...@apache.org>.
On 22/03/2011 12:56, Nick Williams wrote:
> Also, the Apache Portable Runtime is only useful over HTTP and not AJP,
> right? Making that an advantage of ARR over JK?

There are BIO and APR/native versions of the Tomcat AJP connector.
APR/native can be useful for both HTTP and AJP. How useful depends on
the traffic profile.

Mark

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