Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction Attribute  RSS feed

 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!