0

In brief, and with linking to this topic: Is it possible to have 2 EJBs having Bean managed Transactions nature in which the first EJB calls a method in the second one and all are wrapped in single UserTransaction that starts from the first EJB?

omerbp
  • 3,973
  • 4
  • 31
  • 47
user1017344
  • 171
  • 1
  • 1
  • 11

1 Answers1

0

It can be achieved through workaround like extending the BMT, the bean that you would like to inject, into a new class and annotate it as alternative bean and then inject the new annotated class into another BMT. It will work as a single transaction starting from BMT to the new annotated bean and ended by the caller BMT

user1017344
  • 171
  • 1
  • 1
  • 11