Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 90786 invoked from network); 11 Jul 2006 11:56:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 11:56:40 -0000 Received: (qmail 9440 invoked by uid 500); 11 Jul 2006 11:56:27 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 9171 invoked by uid 500); 11 Jul 2006 11:56:26 -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 9159 invoked by uid 99); 11 Jul 2006 11:56:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 04:56:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.67.202.165] (HELO bismuth.webfusion.co.uk) (212.67.202.165) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 04:56:25 -0700 Received: from 87-194-45-130.bethere.co.uk ([87.194.45.130] helo=[192.168.1.65]) by bismuth.webfusion.co.uk with esmtpa (Exim 4.54) id 1G0GqS-0005Z2-8p for users@tomcat.apache.org; Tue, 11 Jul 2006 12:56:04 +0100 Message-ID: <44B391D2.9020005@pidster.com> Date: Tue, 11 Jul 2006 12:56:02 +0100 From: Pid Reply-To: p@pidster.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: forwarding to a remote host References: <44B38DAA.5060107@deitcher.net> <44B391B7.1070701@x-minds.org> In-Reply-To: <44B391B7.1070701@x-minds.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N not unless you've got clustering setup and the cluster is correctly sharing session data. the session data is otherwise local to the server in use. Vinu Varghese wrote: > Avi, > What will happen with the session and objects bound to it ?, Will they > be accessible in the second server ? > > - Regards > Vinu > > Avi Deitcher wrote: >> Zohar, >> - In the same host & context, use RequestDispatcher.forward() >> - In the same host but different context, if cross-context enabled, get >> the RequestDispatcher for that context then use forward() >> - Different host entirely, or cross-context not enabled, you will >> probably need to rebuild the request. I usually use the Jakarta Commons >> HTTPClient for this. Check out >> http://jakarta.apache.org/commons/httpclient/ >> >> Anyone have a better suggestion? >> >> Avi >> >> Zohar wrote: >> >> >>> Hello list, >>> I have a servlet that handles POST requests. Sometimes the request >>> needs to be forwarded to a different servlet, which may be running on >>> a different server. What is the best way to do that? >>> Thanks, >>> Zohar. >>> >>> >>> >> >> > --------------------------------------------------------------------- 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