-->
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: Meaning of current_session_context_class
PostPosted: Tue Nov 21, 2006 4:47 am 
Beginner
Beginner

Joined: Sun Nov 19, 2006 6:18 am
Posts: 28
Hi,
Can some tell me the significance of this property.I read some links but m still not sure wat this exactly means.I am asking this because i m using Hibernate.currentSession(),so will this return a new sssion object always.
<property name="current_session_context_class">thread</property>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 9:27 am 
Regular
Regular

Joined: Tue Feb 24, 2004 11:42 am
Posts: 56
In short this how you define Contextual Sessions and manage your session.

if you are use thread you will find session is automatically closed after a transaction is committed or rolled backed.If you use JTa you will see that the session is open after a commit or rollback this is because you will have to manage the session.


if this helps please do rate


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.