-->
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: current_session_context_class=thread w/JPA (JavaSE)
PostPosted: Wed May 02, 2007 4:25 am 
Newbie

Joined: Wed Mar 21, 2007 2:07 pm
Posts: 9
Location: Minnesota
Does setting the hibernate.current_session_context_class property to "thread" do anything when using JPA (EJB3Configuration) in a Java SE application (RESOURCE_LOCAL)?

What about setting hibernate.transaction.auto_close_session to "true"?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 02, 2007 4:53 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No, and no.

Current Session propagation is only applied if you use the sf.getCurrentSession() API.

Closing the EntityManager (again, no Session API here) is well-defined in the spec and does not change with a Hibernate switch.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.