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?
Asked
Active
Viewed 46 times
0
AvidLearner
- 4,123
- 5
- 35
- 48
user1017344
- 181
- 1
- 1
- 11
-
1take a look at [this](http://stackoverflow.com/a/17893144/2014619) – Gabriel Aramburu Jun 16 '15 at 11:55
-
I'm seeking for a workaround this using BMT – user1017344 Jun 16 '15 at 12:44
-
1No, this is not possible, which is the same answer as in the question you linked. – Brett Kail Jun 16 '15 at 14:02
1 Answers
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
- 181
- 1
- 1
- 11