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

Question about Transactions and EJBs  RSS feed

 
Francisco I
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I created EJB 1 that calls EJB 2 that calls EJB 3.
if EJB 3 transactions are Required. Is there any contraint as far as what transaction properties do EJB 2 and 1 have to have?
 
Rich Raposa
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. A method marked as "Required" will cause a new transaction to be started if it's not in a transaction already.
If the method is called from within an existing transaction, then it will use this existing transaction and not start a new one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!