-->
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: anybody can exlpain session?
PostPosted: Fri Apr 07, 2006 9:30 pm 
Newbie

Joined: Sat Mar 18, 2006 1:27 am
Posts: 15
three questions here:

1st,
is that possible to have isOpen() true but isConnected() false?

2nd
is that possible to have isOpen() false but isConnected() true?

3rd
when the both return true and when they both return false?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 08, 2006 7:17 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Hello,

you can disconnect a session from the underlying jdbc connection, which is useful for long session handling. Read about this in the Hibernate reference. In my book is not yet a complete example project for this kind of usage.

I suppose that the session is still open in this moment but I did not use this approach, so you may verify it.

A closed session is no longer of use and the jdbc connection is released.

Best Regards

Sebastian

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


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.