This content has been marked as final.
Show 3 replies
-
1. Re: Need explanation about Transactions on JavaBean
tom_goring Apr 12, 2008 4:31 AM (in response to agori)For sure if your exception is:
@ApplicationException(rollback=true) public class BLRuleFailure extends RuntimeException
-
2. Re: Need explanation about Transactions on JavaBean
pmuir Apr 14, 2008 10:11 AM (in response to agori)
Alberto Gori wrote on Apr 11, 2008 12:08 PM:
Currenctly (without any @Transaction) if my save method performs 2 update, will they happens in 2 different transactions?Depends if you are using Seam managed transactions, if you are, then they will happen in the same transaction. You need to annotate any method which may require a transaction @Transactional to ensure that Seam starts a transaction if necessary for it.
-
3. Re: Need explanation about Transactions on JavaBean
vladimir.kovalyuk Aug 28, 2008 4:54 PM (in response to agori)Please correct me if I wrong:
When application uses seam-managed transactions and persistence context and most JSF actions are binded to Java Beans, I need to mark each binded method with @Transactional if the method is supposed to be atomic.