[quote="mcorrea"]when i used the session.close() and how i get a new session(), i need to create a pool manager.
With the pool connection i have less problems with my web applications.
What is the code to manage the pool and how i close the session and open again.
Thanks[/quote]
Hello Friend:
You can use JNDI tu get your hibernate Session, because JNDI is a feature provided by you application Server.
At your application Server, you can config JNDI to your datasource and also their connection pool.
So when you get a Hibernate´s Session, (openSession), it will go to Application Server to get a Connection in their pool, when you close your Session, it will turn Connection to the Pool.
You can look at your Application Server configuration and change your Hibernate Configuration File to load JNDI.
Requests for comments.
|