-->
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.  [ 4 posts ] 
Author Message
 Post subject: Is ther need of transaction demarcation in hibernate
PostPosted: Wed Jun 08, 2011 6:13 am 
Newbie

Joined: Wed Jun 08, 2011 6:08 am
Posts: 4
hi Guys,
I am having 1 thing to dicuss.
if i am always going to create new session for every DAO call using sessionfactory.opensession then is there any need for setting transaction demarcation.

Transaction demarcation in here means like never, required, requirednew , etc...


Top
 Profile  
 
 Post subject: Re: Is ther need of transaction demarcation in hibernate
PostPosted: Wed Jun 08, 2011 1:43 pm 
Newbie

Joined: Wed Jun 08, 2011 12:50 pm
Posts: 8
Location: Germany
Hi!

This depends on your environment you're running. If there is no application server or framework doing the transaction handling, you have to do it yourself. So are you using Spring or ejb?


Top
 Profile  
 
 Post subject: Re: Is ther need of transaction demarcation in hibernate
PostPosted: Thu Jun 09, 2011 1:26 am 
Newbie

Joined: Wed Jun 08, 2011 6:08 am
Posts: 4
I ma planing to use EJB i meant to ask is ther eany transaction demarcation facility provided by hibernate


Top
 Profile  
 
 Post subject: Re: Is ther need of transaction demarcation in hibernate
PostPosted: Thu Jun 09, 2011 2:59 am 
Newbie

Joined: Wed Jun 08, 2011 12:50 pm
Posts: 8
Location: Germany
If you use ejb and jpa the application server can handle those things for you and does so by default.


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