refer to the follow links for detail:
http://www.codefin.net/2007/05/hibernate-and-mysql-connection-timeouts.html
http://www.mchange.com/projects/c3p0/#hibernate-specific
http://www.codefin.net/2007/05/hibernate-and-mysql-connection-timeouts.html
http://www.mchange.com/projects/c3p0/#hibernate-specific