-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Does session.close() returns the connection to the pool
PostPosted: Tue Jan 27, 2004 3:15 pm 
Newbie

Joined: Mon Jan 26, 2004 4:21 pm
Posts: 10
Hi List,

I'm using DBCP. When I release my session with session.close(), will the connection be returned to the pool or do I have to take care of this myself? If I have to do it, what's the best way?
Thanks,
Susie.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 6:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
session.close() will return the connection to the pool.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 8:32 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Unless you give Hibernate a user connection (see documentation for detail)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.