How to invoke EJB interceptors from modules

Solution Verified - Updated -

Issue

  • Consider to Interceptors annotated on an EJB like below, Where MyModuleInterceptor.class is installed as JBoss module and MyLocalInterceptor.class is packaged with EJB:-

    • Interceptor Code:
        @Interceptors(
        { MyModuleInterceptor.class, MyLocalInterceptor.class }
    
        )
    
    • Expected behavior should be that interceptors are called.
    • However, the actual behavior is that, only interceptor local to EJB package is called and not the one installed in JBoss module system.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.2.0

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.