Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what will happen if we create two userTransaction inside each other?  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
what is impact and requirement of two userTransaction inside eachother?
for example we have a servlet which calls two method from two objects
it call them inside one userTransaction.
inside each method we have begging and ended some userTransaction.

My question is: what is impact of this scenario and what is its requirement from application server side, and resources like database and JMS and ....
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The time/space vortex would close in on everyone and life on the planet as we know will cease to exist.

You can have nested transactions, in some cases with EJB, you can define the EJB method to Require, RequireNew, Mandatory, None, etc, for different situations having to do with a Transaction already in place and if the method call joins that transaction or creates a new one, or suspends the first one.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!