This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
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

Transactions  RSS feed

 
Yogender Butola
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we have a scenario where One bean is using programmatic transaction and other is using declarative transaction, considering both the beans are running under the same transaction.
 
Brian Tinnel
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only time a mix like that can be in the same transaction is if the bean using programmatic transactions calls the one using declarative transactions. If you do it the other way around (declarative calling progammatic), the first transaction is suspended. Also, the method called in the declarative transaction bean must be declared to be Required or Supports.

I hope this makes sense.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!