-->
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.  [ 3 posts ] 
Author Message
 Post subject: getCurrentSession() and HibernateException
PostPosted: Thu May 26, 2005 12:27 pm 
Newbie

Joined: Sat Jul 24, 2004 10:10 am
Posts: 15
Jboss 4.0.2 Hibernate 3.0.5

I am using the factory.getCurrentSession() method to obtain a session in a Stateless EJB. Both the hibernate.transaction.flush_before_completion and hibernate.transaction.auto_close_session configuration options have been set to true. If the HibernateException is thrown , will the session be automatically closed.

Please advise.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 07, 2005 2:00 pm 
Newbie

Joined: Thu Jul 07, 2005 1:47 pm
Posts: 6
Could you by chance explain how you implemented factory.getCurrentSession() . I am having the hardest time trying to get it to work. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 07, 2005 9:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Um, you realize this is open source right?

http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.java?rev=1.83&view=auto


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