-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
15.0.1.Final
-
None
When adding dynamically a transactional annotation, transactional module isn't loaded, so transactions aren't available and throws this error:
javax.persistence.TransactionRequiredException: WFLYJPA0060: Transaction is required to perform this operation (either use a transaction or extended persistence context)
I've attached a reproducer with a test in order to reproduce this. There you can see that there is a CDI producer that dynamically adds the annotation for transactions, that doesn't work.
mkouba@redhat.com found this could be an optimization for not loading JTS module: https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java/org/jboss/as/txn/deployment/TransactionDependenciesProcessor.java#L74-L76
In order to execute tests:
mvn clean test
To execute test, passing in Payara:
mvn clean test -Ppayara
- is related to
-
WFLY-11674 Adding JTA reference under docs: documentation about transactions is missing
- Closed