Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 50045 invoked from network); 6 Oct 2005 13:16:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 13:16:13 -0000 Received: (qmail 17790 invoked by uid 500); 6 Oct 2005 13:15:58 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 17777 invoked by uid 500); 6 Oct 2005 13:15:58 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 17759 invoked by uid 99); 6 Oct 2005 13:15:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 06:15:57 -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 [213.162.97.75] (HELO mail.metronet.co.uk) (213.162.97.75) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 06:15:59 -0700 Received: from radford (213-162-107-30.jambus026.adsl.metronet.co.uk [213.162.107.30]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 0467440DE92 for ; Thu, 6 Oct 2005 14:15:23 +0100 (BST) Received: from 127.0.0.1 (AVG SMTP 7.0.344 [267.11.10]); Thu, 06 Oct 2005 14:15:32 +0100 Message-ID: <43452373.3070708@jbgb.com> Date: Thu, 06 Oct 2005 14:15:31 +0100 From: Paul Singleton Organization: Jambusters Ltd User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en To: Tomcat Users List Subject: can one app check another is available? Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've split an app into two: one contains many GB of static images (rarely changes), the other all the session stuff (this one is updated frequently). No matter where it is deployed, the real app can refer to images e.g. src="/maps/....." but I want the real app to check that the data app is responding whenever it restarts. I can do this if I know the full URL, but is there any way I can check with just the server-relative URL? Currently I do something like (new java.net.URL(...)).openConnection() (hmm, sorry but I guess this isn't Tomcat-specific...) Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.10/120 - Release Date: 5/Oct/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org