-->
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: Can I use JTA without Spring? (Struts1.1 + Hibernate3)
PostPosted: Thu Aug 30, 2007 9:48 pm 
Newbie

Joined: Mon May 14, 2007 9:54 pm
Posts: 3
HI.
The problem is: I wrapped every operation of Hibnate in their own functions, when using 2 functions together, I don't want the first to be commited if the second goes wrong. But the fact is that the first has been already commited because I wrote "tx=..beginTransaction...tx.commit" in every function.
I haven't used Spring and our work uses only Struts and Hibernate, is there any good solution for my problem?
Thanks!


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.