Bookmark Topic Watch Topic
  • New Topic

Clarification on Propagation Nested in spring

 
scott miles
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
    Bookmark Topic Watch Topic
  • New Topic