• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction Attribute

 
Deepika Wadhwa
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is difference if I write tranasction attribute as Mandatory or Required?
And if there is not transaction in previous method call, how would these two will behave differently?
thanx in advance
Deepika
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mandatory: If a transaction is in progress then the bean joins the transaction. Otherwise a TransactionRequiredException or TransactionRequiredLocalException is thrown.
Required: If a transaction is in progress then the bean joins the transaction. Otherwise a new transaction is started.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!