EJB client interceptors in JBoss EAP 6

Solution Unverified - Updated -

Issue

  • Can I register interceptors that will be valid for every EJB invocation or I have to register them separately (EJBClientContext.getCurrent().registerInterceptor(0, new HelloClientInterceptor());) - For example, what if I wanted HelloClientInterceptor to be always used for every EJB invocation (without requiring registration everywhere in code)?

  • How will this interceptors play with invoking remote EJBs in cluster (from one EAP instance to another one)?

  • If I do @EJB injection of remote EJB how do I attach interceptor in that case?

  • I am not able to find documentation about these JBoss specific interceptors. Do you have anything available?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

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.