javajmswebsphereinterceptormessage-driven-bean

WAS 7.0 - default interceptors in MDBs


I'm having problems advising MDBs with default interceptors in Websphere 7.0 AS. I have tested the same code using Glassfish AS and it works fine. The strange thing is that WAS interceptor is applied for stateless beans but not for MDB.

<assembly-descriptor>
<interceptor-binding>
    <ejb-name>*</ejb-name>  
    <interceptor-class>jms.service.interceptor.IncomingJMSMessageLogInterceptor</interceptor-class> 
</interceptor-binding>
</assembly-descriptor>

Solution

  • Interceptors are only supported for MDBs using JCA message endpoints, not listener ports.

    APAR PM53989 has been opened for this problem.