I am using the below configuration in ejb-jar.xml (
EJB 3.0) for interceptor configuration.
<assembly-descriptor>
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-order>
<interceptor-class>com.test.interceptor.TestInterceptor2</interceptor-class>
<interceptor-class>com.test.interceptor.TestInterceptor</interceptor-class>
</interceptor-order>
</interceptor-binding>
<interceptor-binding>
<ejb-name>TestBoBean</ejb-name>
<exclude-default-interceptors>true</exclude-default-interceptors>
<interceptor-class>com.test.interceptor.TestInterceptor3</interceptor-class>
<interceptor-class>com.test.interceptor.TestInterceptor1</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
This works fine.
But i need the exclude interceptor configurations for certain bean names like *BoBean (all the beans ending with "BoBean").
Can any one help me in this .
The below code is not working
<interceptor-binding>
<ejb-name>*BoBean</ejb-name>
<exclude-default-interceptors>true</exclude-default-interceptors>
<interceptor-class>com.test.interceptor.TestInterceptor3</interceptor-class>
<interceptor-class>com.test.interceptor.TestInterceptor1</interceptor-class>
</interceptor-binding>