You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Joao Batistella <jo...@ptinovacao.pt> on 2004/03/29 10:55:48 UTC

Connection is closed

Hello!

I started using DBCP with Oracle 8i and I'm having the error "Connection is
closed" sometimes. How can I change the DBCP configuration to avoid this
kind of error?

Thanks,
JP

Re: Connection is closed

Posted by Stephen Westbom <sw...@yahoo.com>.
Just a guess, but after your last question, don't ever call the close() method
on the underlying connection object.  That truly  closes the connection and you
will have a dead one in the pool.  Only call close() on the DBCP connection
object decorator which simply returns the connection to the pool.

--- Joao Batistella <jo...@ptinovacao.pt> wrote:
> Hello!
> 
> I started using DBCP with Oracle 8i and I'm having the error "Connection is
> closed" sometimes. How can I change the DBCP configuration to avoid this
> kind of error?
> 
> Thanks,
> JP
> 


=====
Your source for complex solutions to simple problems

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org