-->
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: When Hibernate garbage collect and close a lazy connection ?
PostPosted: Sun Jan 30, 2011 6:47 am 
Newbie

Joined: Sun Jan 30, 2011 6:26 am
Posts: 1
I often see the log message "unclosed connection, forgot to call close() on your session?"
I think it may be a message that Hibernate closed connection whiche is lazy or forgotten to be closed.
I cannot discover a information about this at Web.

I want to know whether taht is true or not and When Hibernate starts this job ????.


Top
 Profile  
 
 Post subject: Re: When Hibernate garbage collect and close a lazy connection ?
PostPosted: Sun Jan 30, 2011 8:21 am 
Newbie

Joined: Sun May 09, 2010 4:48 am
Posts: 11
You usually make a call to session.close() after a "unit of work" to close the connection in a non-managed environment.


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.