This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi all, I am learning struts with hibernates. I want to implement connection pooling.
I wrote the configuration code in a java class, when ever I want a connection I am creating an instance for that class in my bean class and getting a session factory object. From that I am creating a session object and persisting the data to database. I am using c3p0 connection pooling. The sample code looks like this
Is the approach right? Can anyone guide me. Thank you all in advance. Have a good day.