In your DAO
use something like this:
Code:
public List findAll() {
log.debug("finding all Address instances");
try {
String queryString = "from Address";
return getHibernateTemplate().find(queryString);
} catch (RuntimeException re) {
log.error("find all failed", re);
throw re;
}
}
Obviously thats soething from my code, but I think you can adjust it to meet your needs easily. Make sure your DAO extends HibernateDaoSupport.
This will make sure to return connections to the pool. Your pool count is maxed out, which indicates that you're not closing connections which returns them to the pool.