@Transactional not working correctly with @Stereotype

Solution Verified - Updated -

Issue

  • Calling the business method on the EJB, the user will get the (incorrect) message that the Class is missing a @Transactional annotation

    java.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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content