• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help need to exclude list of bean classes from interceptors

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic