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:[EMAIL PROTECTED] 
> Sent: Saturday, July 19, 2003 1:17 PM
> To: '[EMAIL PROTECTED]'
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to