wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes how to give the real connection back to the pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to give the real connection back to the pool" Watch "how to give the real connection back to the pool" New topic
Author

how to give the real connection back to the pool

long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
i use the connection pool provided by websphere, i want to know if i call "session.close()", is that mean hibernate will give the connection back to the connection pool? if not, how to give it back, thanks!


SCJP 5.0 98%<br />SCWCD 5.0 in progress . . .
long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
i just tried this,


and the conn is null, is that mean the connection is already closed?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
session.close is supposed to close the connection and return it to the pool

long meng wrote:i use the connection pool provided by websphere, i want to know if i call "session.close()", is that mean hibernate will give the connection back to the connection pool? if not, how to give it back, thanks!


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
Don't get me started about those stupid light bulbs.
 
subject: how to give the real connection back to the pool
 
Similar Threads
connpool_max_limit help
Connection Pool Implementation ... ?
is it good to carry the jdbc "Connection" over servlet and Actions ?
How do you close the JDBC connection back to the Connection pool?
Is open/close hibernate session in every business logic a good design?