aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Nested Transaction Model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Nested Transaction Model" Watch "Nested Transaction Model" New topic
Author

Nested Transaction Model

ragavendran krishnamoothy
Greenhorn

Joined: Feb 13, 2007
Posts: 17
Please validate my below understanding in nested transaction.

In nested-transaction model, the sub-transaction can be either flat or nested and if we go for nested sub-transaction, we can rollback that nested sub-transaction alone
if it ends up in failure without affecting the main transaction.

At this time, we can re-try that sub-transaction alone by redoing the same work & it can be made to success but in the end if it doesn't succeed, it will force the main transaction to fail.
This above point i read from Mastering EJB 3.0 book, - and I want to know,

1.Does this mean that we can re-try it only once ?
2.Do the programmers needs to have the logic to re-try & see if it succeeds or not?
3.Again If the sub-transaction fails, how it will affect the main transaction - will it be done by the ejb transaction manager ?

Please correct me if i am wrong in my understanding Or in the questions i have asked. Thanks in advance.

- ragav
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1378
EJB does not support nested transaction(particular transaction within another transaction).
ragavendran krishnamoothy
Greenhorn

Joined: Feb 13, 2007
Posts: 17
Thanks for the quick clarification kri shan.
- ragav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Nested Transaction Model