Java Reference
In-Depth Information
Listing 5.8. Overriding default- and class-level interceptors
Using the <interceptor-order> tag , any default-level interceptors will be over-
ridden as well as any class-level interceptors defined by the @Interceptors annotation.
The ejb-jar.xml in this example configures the MyInterceptor
to be executed in-
If your bean also has methods annotated with @Interceptors , the ejb-jar.xml can be
used to override and reorder those interceptors as well. The following listing shows how
this is done.
Search WWH ::

Custom Search