This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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