Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD23BEDDC for ; Wed, 9 Jan 2013 15:30:43 +0000 (UTC) Received: (qmail 33032 invoked by uid 500); 9 Jan 2013 15:30:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32973 invoked by uid 500); 9 Jan 2013 15:30:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32964 invoked by uid 99); 9 Jan 2013 15:30:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 15:30:40 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.16] (HELO qmta01.westchester.pa.mail.comcast.net) (76.96.62.16) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 15:30:34 +0000 Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta01.westchester.pa.mail.comcast.net with comcast id lorv1k00417dt5G51rWDQz; Wed, 09 Jan 2013 15:30:13 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta13.westchester.pa.mail.comcast.net with comcast id lrWB1k00B38FjT13ZrWC0a; Wed, 09 Jan 2013 15:30:13 +0000 Message-ID: <50ED8D03.8070804@christopherschultz.net> Date: Wed, 09 Jan 2013 10:30:11 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Communication flow with different connectors References: <1357734669.71165760@apps.rackspace.com> <46CD8233-DC30-403F-867E-F8412D2B52E5@vmware.com> <1357740407.989123077@apps.rackspace.com> In-Reply-To: <1357740407.989123077@apps.rackspace.com> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1357745413; bh=xqQAoxLW4BY8rh5WmjyWQhpOuGNH2wwUfGJO8TbqKf0=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=EDdUwLSOe5JrMe631xLH6WsTo6HREpj3HvgBCz86Btex6nMV8zQx2GTWROs3mvy8T jgzediNNqNx7sqh4jZXPZDZXhdHge3NscUzyYmCZ0kvyW7k6HihsDvkfAZk8T7ipuC ZKVDEWZRU4EClY24DCxXokm7UAk9ag8oLJC9w/aLqXdSfNeyG4Kt/HlrB743tbLQek CrnAisUVmx4nNcIEeCbGgoeSbyAqIrUaYfYlMNlJ1fbVL7+iME7uEi4FVZAjcUpHAH yFm7lnuFd+K8+dnEzTnvOZLF9UxhKSz4C8KSsLolXoxRuyscOlDwt7Ognx08TQLihc 7RjRadeDck5aQ== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Vicky, On 1/9/13 9:06 AM, vicki@thepenguin.org wrote: > I appreciate your reply and apologize for the top post (am using a > stupid mail client from work). You can't just press the /down/ arrow key a few times? *shrug* > Your answer gets me part way there, but what is the most confusing > to me is the use of JkMount. How does that fit into the picture > from a communication perspective. It's all configuration, not communication. Once configured, mod_jk and mod_proxy_ajp work in exactly the same way (at least, the wire protocol is the same -- the modules are obviously working somewhat differently, internally). Basically: worker.foo.host=tomcat worker.foo.port=8009 + JkMount /myapp/* foo is the same thing as this: ProxyPass /myapp/ ajp://tomcat:8009/myapp/ ProxyReversePass /myapp/ ajp://tomcat:8009/myapp/ mod_jk's older configuration uses a separate file to configure the workers, then JkMount directives in httpd.conf in order to map URLs to those workers. mod_proxy_ajp's configuration is done all in httpd.conf and matches the configuration of all mod_proxy_* modules. The configuration becomes more complex for both modules when using load-balancing. mod_jk uses a single worker of type "lb" with other workers actually connecting to Tomcat instances, then you use JkMount as usual with the "lb" worker, so httpd.conf need not change at all to introduce load-balancing. mod_proxy uses a directive to define a balancer with various BalancerMember directives and then uses a ProxyPass directive to map a URL space to that balancer, so httpd.conf becomes more complicated when load-balancing is introduced. Note that you can configure mod_jk entirely within httpd.conf if you want, using JkWorkerProperty. I don't believe you can configure mod_jk using such compact syntax as mod_proxy supports, yet mod_jk does support "template" workers which can significantly simplify your deployment if you have many workers to track. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEAREIAAYFAlDtjQMACgkQ9CaO5/Lv0PC8xACfaXUc/Xl7sGU+Rh/eURxxChtd lR4AnjejrpdNTeExDevJ3eAkuTUN0m7g =nFLK -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org