tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angus Mezick" <amez...@guidestar.org>
Subject RE: Loosing DBCP object - how to solve it?
Date Mon, 21 Jul 2003 12:20:58 GMT
Are you using mysql?  If so, are you using this as your jdbc url: 
jdbc:mysql://MACHINE_NAME/DBNAME?autoReconnect=true

> -----Original Message-----
> From: Jose Euclides da Silva Junior - DATAPREVRJ 
> [mailto:Jose.Euclides@rj.previdenciasocial.gov.br] 
> Sent: Saturday, July 19, 2003 1:17 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: Loosing DBCP object - how to solve it?
> 
> 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

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


Mime
View raw message