EJB client interceptors in JBoss EAP 6
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, tools, and much more.