@Transactional not working correctly with @Stereotype
Issue
-
Calling the business method on the EJB, the user will get the (incorrect) message that the Class is missing a
@Transactionalannotationjava.lang.RuntimeException: ARJUNA016107: Expected an @Transactional annotation at class and/or method level at com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorBase.getTransactional(TransactionalInterceptorBase.java:61) at com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorBase.handleException(TransactionalInterceptorBase.java:96) at com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorBase.invokeInOurTx(TransactionalInterceptorBase.java:72)
Environment
- Red Hat JBoss Enterprise Application Platform
- 7
-
interface injected with
@Sterotype@Stereotype @Inherited @Target(TYPE) @Retention(RUNTIME) @Transactional(value = REQUIRES_NEW, rollbackOn = MyException.class) public @interface TxStereotype { @Stereotype @Inherited @Target(TYPE) @Retention(RUNTIME) @TxStereotype public @interface FailingStackedStereotype {
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.