• Post Reply Bookmark Topic Watch Topic
  • New Topic

Diff between Nested transactions and RequiresNew

 
Ravi Ramachandra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am a bit confused about RequriesNew Transaction Atribute and Nested transaction. Does anybody know the difference bet them?
Thanks,
ravi
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The RequiresNew transaction attribute tells the container to suspend the current transaction and start a new transaction for this particular invocation. Once it's finished, the previous transaction is resumed.
A nested transaction would mean that the outcome of the second transaction would have an effect on the first transaction, which is not the case in J2EE because of this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!