This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Nested Transaction Model  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB does not support nested transaction(particular transaction within another transaction).
 
ragavendran krishnamoothy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick clarification kri shan.
- ragav
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!