Hi All, Am fairly new to use hibernate, please help to answer my simple doubt, its more of a design oriented doubt.
I have configured the hibernate properties to have min of 5 connections and max of 30 connections in the connection pool initially and configured as minimum idle connections as 5 to have always minimum of 5 connections available to serve the requests. In the application code am closing the connection which I have taken from the data source, we use spring to configure the data source and hibernate sessions. I am not closing the data source nor sessions but closing the connection objects in the code. My doubt is even if i closed the connection will the hibernate takes care of creating connection objects even when there is no request comes in to match the configuration as min of 5 connections should be available at any time? Do we really need to take care of closing the connection object in application by ourself?
Regards Subash
|