@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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.