I've just hit this behavior now, and I believe it is a bug.
EJB method interceptions are handled by EJB container in other cases (like noted in [comment in SessionBeanInjectionTarget|https://github.com/weld/core/blob/bfac55fb0/modules/ejb/src/main/java/org/jboss/weld/module/ejb/SessionBeanInjectionTarget.java#L106].
For MDBs it means, that message listener interceptors gets invoked twice -- once by EJB container, and then again by CDI. I'm seeing this behavior in Payara, but I'll yet check if I can reproduce that on Wildfly. |
|