• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ....
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic