tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Euclides da Silva Junior - DATAPREVRJ <>
Subject Loosing DBCP object - how to solve it?
Date Sat, 19 Jul 2003 17:17:18 GMT
Hi guys,
i have made a bean which creates a Data Base Connection Pool instance once,
so that others systems components can use it. This beans is instanced when
the Controller Servlet's init method runs. In other words, just one time
this bean is instanced! Whenever i wanna get a connection object, i just
call the bean's connection method, without creating new instances. However,
i am getting the following errror, in which probably, the garbage collector
is killing this object instance.   

BeanTip error -  java.sql.SQLException: Timeout waiting for idle object

I guess i could use a Singleton to deal with this situation, but i dont know
how to!
Could anybody help me, please.
Regards, Euclides.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message