This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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
 
Similar Threads
Query rgd interceptor invocation order
Business method interceptor methods (AroundInvoke methods) invocation order
EJB 3.1 - interceptors ordering and binding definition
Problem integrating Jboss with IBM MQ using JCA resource adaptors
Life-Cycle Event Interceptor Method Skipped