tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikola Milutinovic <Nikola.Milutino...@ev.co.yu>
Subject Re: Can the JNDI Connection Pool re-connect after failure?
Date Wed, 29 Jan 2003 09:08:43 GMT
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


Mime
View raw message