Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.5
-
None
-
IBM Websphere 8.0.0.6 and 8.5.5.1
Description
It seems that due to different interpretations of the EE Spec WAS behaves differently when calling a CDI bean from a CMT EJB. While TomEE for example gives access to the UserTransaction, WAS will not (@Resource inject fails as well as lookup via JNDI "java:comp/UserTransaction". This behavior currently (0.6-SNAPSHOT) results in a NameNotFoundException in BeanManagedUserTransactionStrategy#resolveUserTransaction()
To provide a workaround for WAS the idea would be to resort back to TransactionSynchronisationRegistry which also exposes the current Transaction Status (even on WAS) and should therefore be sufficient to implicitely "join" the currently ongoing transaction. A Status != ACTIVE should probably still result in an error indicating probably a misconfigured RESOURCE_LOCAL Datasource
Attachments
Attachments
Issue Links
- is related to
-
DELTASPIKE-458 UserTransaction is not always available in JNDI
- Closed
-
DELTASPIKE-462 BeanManagedUserTransactionStrategy closes transaction even if it is called within EJB
- Closed