RE: Connection failed if DB restarted?

2003-10-17 Thread Clute, Andrew
PROTECTED] Sent: Friday, October 17, 2003 11:30 AM To: OJB Users List Subject: Re: Connection failed if DB restarted? Hi Andrew, you can use the 'validationQuery' attribute of connection-pool element to specify a validation query. This query will be executed each time before a conn

Re: ConnectionValidator (was: Re: Connection failed if DB restarted?)

2003-10-17 Thread Justis Peters
Hi Armin, Armin Waibel [EMAIL PROTECTED] wrote: > I propose to add the associated JdbcConnectionDescriptor > as argument too > > >>>= > >>>ConnectionValidator.java > >>>= > >>>package org.apache.ojb.broker.accesslayer; > >>> > >>>public interface Co

Re: ConnectionValidator (was: Re: Connection failed if DB restarted?)

2003-10-17 Thread Armin Waibel
Hi again, this sounds great! I propose to add the associated JdbcConnectionDescriptor as argument too >= >ConnectionValidator.java >= >package org.apache.ojb.broker.accesslayer; > >public interface ConnectionValidator >{ >public boolean isValid(

Re: ConnectionValidator (was: Re: Connection failed if DB restarted?)

2003-10-17 Thread Justis Peters
Hi Armin, Armin Waibel [EMAIL PROTECTED] wrote: > On Fri, 17 Oct 2003 11:54:56 -0400, Justis Peters <[EMAIL PROTECTED]> > wrote: > >Could we handle this by defining an interface and allowing users to > >specify their own tester class? Here is what I am picturing: > > > yes this will be possible

Re: Connection failed if DB restarted?

2003-10-17 Thread Armin Waibel
Hi again, On Fri, 17 Oct 2003 11:54:56 -0400, Justis Peters <[EMAIL PROTECTED]> wrote: Hi Armin, Could we handle this by defining an interface and allowing users to specify their own tester class? Here is what I am picturing: yes this will be possible, but can you describe what's the advanta

Re: Connection failed if DB restarted?

2003-10-17 Thread Justis Peters
Hi Armin, Could we handle this by defining an interface and allowing users to specify their own tester class? Here is what I am picturing: = ConnectionValidator.java = package org.apache.ojb.broker.accesslayer; public interface ConnectionValidato

Re: Connection failed if DB restarted?

2003-10-17 Thread Armin Waibel
Hi Andrew, you can use the 'validationQuery' attribute of connection-pool element to specify a validation query. This query will be executed each time before a connection was delivered by the pool. Any proposals to make this more sophisticated are welcome. regards, Armin On Fri, 17 Oct 2003 11:20: