-->
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.  [ 2 posts ] 
Author Message
 Post subject: Does session.close() close session.connection()?
PostPosted: Tue Jun 15, 2004 12:32 pm 
Pro
Pro

Joined: Wed Oct 08, 2003 10:31 am
Posts: 247
I would like to know if by having:

Code:
Connection conn = session.connection();


Can I close conn by simply doing session.close() or do I have to explicitly do a conn.close()


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 15, 2004 1:22 pm 
Newbie

Joined: Fri Apr 23, 2004 4:18 pm
Posts: 15
Location: Oslo, Norway
Yes, session.close() also closes the connection.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.