wood burning stoves 2.0*
The moose likes Spring and the fly likes Clarification on  Propagation Nested  in spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply locked New topic
Author

Clarification on Propagation Nested in spring

scott miles
Ranch Hand

Joined: Jun 16, 2011
Posts: 70
wanted to clarify the Propagation Nested fundamental with below scenarios. . Please let me know if below understanding is correct




Scenarion1:-

No exception occurs. transaction will be created on entering method1A() and will be commited on exit of method1A()

Scenarion2:-

Runtime exception occurs during method1B. Complete transaction will be rolled back

Scenarion3:-

Runtime exception occurs during method2A .Only transaction under method2A will be rolled back and rest of the transaction will be commited on exit of method1

Scenarion4:-

Runtime exception occurs during method2B. Only transaction under method2B will be rolled back and rest of the transaction will be commited on exit of method1
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

This is a duplicate post of your previous thread. Please don't duplicate post.

I am closing this thread as this is a duplicate and the other thread has a complete description of what Nested means.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: Clarification on Propagation Nested in spring