-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate, JBoss and the transaction attribute
PostPosted: Sun Apr 03, 2005 9:08 am 
Newbie

Joined: Thu Nov 18, 2004 12:32 pm
Posts: 8
Location: UK (Newcastle upon Tyne)
I posted this to:
JBoss Application Server & JBoss Cache
but got no replies. Hence I'm retrying here, hoping for a bit more luck.


I got hibernate (2.1.8) working with JBoss 4.0.2.

But I noticed that in my session facade, I had to set the transaction context as RequiresNew before using the Hibernate session.

This means that the callers transaction context gets suspended.

For long running transactions (say, a business process that calls various methods in the session facade), does this mean that I will not be able to rollback across the whole process in the event of a failure, or a requirement.

Will this change over time so that Hibernate behaves just like a CMP bean?

Cheers
-raj


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.