Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 58085 invoked from network); 29 Jan 2003 09:08:02 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Jan 2003 09:08:02 -0000 Received: (qmail 27206 invoked by uid 97); 29 Jan 2003 09:09:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 27199 invoked from network); 29 Jan 2003 09:09:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Jan 2003 09:09:38 -0000 Received: (qmail 56442 invoked by uid 500); 29 Jan 2003 09:07:39 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 56430 invoked from network); 29 Jan 2003 09:07:38 -0000 Received: from gateway.ev.co.yu (HELO Firewall.ev.co.yu) (194.247.214.130) by daedalus.apache.org with SMTP; 29 Jan 2003 09:07:38 -0000 Received: by Firewall.ev.co.yu; (5.65v4.0/1.3/10May95) id AA07849; Fri, 29 Jan 1999 10:09:36 +0100 Received: from ev.co.yu (Brigitte.ev.co.yu [192.168.61.110]) (authenticated bits=0) by Uprava.ev.co.yu (8.12.5/8.12.5) with ESMTP id h0T9FLgL002735 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=OK) for ; Wed, 29 Jan 2003 10:15:25 +0100 (MET) Message-Id: <3E379A1B.1020201@ev.co.yu> Date: Wed, 29 Jan 2003 10:08:43 +0100 From: Nikola Milutinovic User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en, sr Mime-Version: 1.0 To: Tomcat Users List Subject: Re: Can the JNDI Connection Pool re-connect after failure? References: <3E36B63E.30503@folgmann.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Boris Folgmann wrote: > Ryan Cornia wrote: > > >>Anyone using JNDI datasources that reconnect in case of a lost link to >>the DB server? >> >>Any examples? I'm using the I-net driver for Oracle > > > Interesting question. In fact I have the same problem, using DBCP and > PostgreSQL. I looked trough the Javadocs at > http://jakarta.apache.org/commons/dbcp/api/index.html > but did not find a resource argument for configuring something like a > reconnect. Any comments welcome. I believe that if you set up "connection verification query" in your DataSource definition in server.xml it will reconnect. Haven't tried it, though. Nix. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org