aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Help need to exclude list of bean classes from interceptors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Help need to exclude list of bean classes from interceptors " Watch "Help need to exclude list of bean classes from interceptors " New topic
Author

Help need to exclude list of bean classes from interceptors

shijin raj
Greenhorn

Joined: Oct 22, 2009
Posts: 4
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help need to exclude list of bean classes from interceptors