Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.5
-
None
Description
We came across the situation that BeanManagedUserTransactionStrategy cannot find the UserTransaction in java:comp/UserTransaction via JNDI.
I think this happens when the container starts or for some containers if you access the UserTransaction from outside an EJB. In those cases it might simply be not well specified in the EJB spec.
In our case injecting the UserTransaction via @Resource worked perfectly fine.
Thus I suggest a lookup chain:
1st try the injected UserTransaction if not null
2nd if the injection was null, we try JNDI
Attachments
Issue Links
- relates to
-
DELTASPIKE-507 UserTransaction not available in WAS 8.0 and 8.5 during EJB CMT call
- Closed