commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From foo java <fooj...@googlemail.com>
Subject Re: coomons dbcp refresh connections - how?
Date Fri, 20 Jan 2006 10:04:22 GMT
Hi,

Thanks for your reply. Do you mean to say it is a default feature of dbcp? I
don't think so.
Or have you put some configuration setting to get the connections refreshed.

Please reply.

Regards,
foojava


On 1/18/06, praveen gunda <praveen.gunda@gmail.com> wrote:
>
> Once DBCP notices a stale connection it refreshes that connection.
> I have been using this from a year now. Our DB is restarted every sunday
> morning and I rarely have problems with the connections.
>
> DBCP seems to refresh the connections for me. But anyway my pool size is
> fairly low, so my connection pool is refreshed in no time.
>
>
>
> On 1/18/06, foo java <foojava@googlemail.com> wrote:
> >
> > Hi,
> >
> > I am using jakarta commons DBCP package to pool the jdbc connections. I
> am
> > wondering is there any way with it to refresh the connections between
> pool
> > and database?
> >
> > Say, in case at the start the connections are established between pool
> and
> > database. Client request and return the connection to the pool. In case
> > because of network down or database down, the connection between pool
> and
> > db
> > gets broken. Is there any way to judge and refresh the connection
> between
> > pool and db??
> >
> > Any ideas??
> >
> > regards,
> > foo
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message