Subject | Re: Tomcat + DBCP + FireBird |
---|---|
Author | solusinfo_lms |
Post date | 2004-07-29T08:06:36Z |
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
millisecond? thanks
<rrokytskyy@a...> wrote:
> Hi,seem
>
> > So i want to use "pingInterval" to keep it alive but it doesn't
> > to work : i look at the network activity (with ethereal fromdebian
> > server that supports tomcat) and nothing happens : no packetmake
> > transmitted to FireBird server. Here are my parameters for JayBird
> > pool in server.xml (note, in my java code I get a connection -
> > my queries - close my connection) :execute the
>
> Pool will not send "pings" when connection is in pool. Pool will
> "ping" statement when connection that is returned from pool was notused
> longer than "pingInterval". When the "ping" statement fails, itwill mark
> the connection as "broken", close it, remove it from the pool andwill try
> to fetch the new one.should
>
> This feature will not prevent connections from closing, however you
> never obtain a connection that is unusable.pool, you
>
> If you do want to keep the connection open while keeping it in the
> have to modify sources of the pool to do this. I think the most easyand "ping" the
> approach is to extend the thread that checks the idle timeout
> connection there.is "SELECT
>
> BTW, you can ignore the pingStatement parameter, by default it
> CAST(1 AS INTEGER) FROM rdb$database", it is guaranteed to succeedif the
> connection is working.sorry, I forgot another question : PingInterval is in second or
>
> Roman
millisecond? thanks