ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: connection pooling
Date Thu, 17 Nov 2005 23:16:38 GMT
Do you have the ping query (or validation query) enabled?

Cheers,
Clinton

On 11/17/05, mischa <mischa.z@gmail.com> wrote:
>
> is there anything i can do to prevent ibatis from putting back
> connetions to the pool when they are already closed? i am working with
> cluster pairs and when the connection to one cluster fails i am
> switching back to another. it seems like the connection that failed/is
> closed is getting put back into the pool and is not getting
> reinitialized by the pool. so even if the first cluster is back online i
> am getting a
>
> Cause: java.sql.SQLException: No operations allowed after connection
> closed.
>
> any thoughts?
> thanks,
> mischa
>
>
>

Mime
View raw message