Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 86306 invoked from network); 15 May 2008 17:17:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 17:17:09 -0000 Received: (qmail 68603 invoked by uid 500); 15 May 2008 17:16:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 68575 invoked by uid 500); 15 May 2008 17:16:58 -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 68564 invoked by uid 99); 15 May 2008 17:16:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 10:16:58 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.23.3.140] (HELO smarthost01.mail.zen.net.uk) (212.23.3.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 17:16:04 +0000 Received: from [82.70.116.177] (helo=mail.melandra.com) by smarthost01.mail.zen.net.uk with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.63) (envelope-from ) id 1Jwh44-00012d-Ti for users@tomcat.apache.org; Thu, 15 May 2008 17:16:25 +0000 Received: from puma.melandra.net ([10.0.0.251]) by puma.melandra.net ([10.0.0.251]) with mapi; Thu, 15 May 2008 18:16:23 +0100 From: Peter Crowther To: 'Tomcat Users List' Date: Thu, 15 May 2008 18:16:23 +0100 Subject: RE: Redirect request to another Tomcat server Thread-Topic: Redirect request to another Tomcat server Thread-Index: Aci2rmtg4YvONo0iQjCRXaOMh6n8SAAAKStw Message-ID: <6715CF65287F8F408DA109EC03AC6C0D03C63AD554@puma.melandra.net> References: <3A55348B50FD2A40AAA40ABA16C6B6D60E7CD867@EXNJMB23.nam.nsroot.net> <482C67E5.3000302@goldigolino.com.es> <6715CF65287F8F408DA109EC03AC6C0D03C63AD553@puma.melandra.net> <482C6DE0.6070703@goldigolino.com.es> In-Reply-To: <482C6DE0.6070703@goldigolino.com.es> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Originating-Smarthost01-IP: [82.70.116.177] X-Virus-Checked: Checked by ClamAV on apache.org > From: Liang Xiao Zhu [mailto:ubekhet@goldigolino.com.es] > But, what happen if I want using Session instead of Request? mean, I > want to refuse session according the number of session I have > currently!!! And them redirect the refused session to other tomcat > server!!!! You are taking an action when a request comes in. There is no other time a= t which you can take an action to redirect a request. The action you are taking is to choose whether to redirect the request base= d on a) whether it already has a session on this server, b) how many sessio= ns this server has. You can detect both of these in the valve, and make a = decision. By the way, it sounds like you are writing a load-balancing framework. You= are aware that Tomcat already has one? - Peter --------------------------------------------------------------------- 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