I just wanted to know the concept of database connection pooling and how it is achieved.
You can use the apache commons library for connection pooling implementation transparently : http://commons.apache.org/dbcp/
DBCP is also a supported Hibernate pool : http://www.informit.com/articles/article.aspx?p=353736&seqNum=4