This content has been marked as final.
Show 1 reply
-
1. Re: Default Interceptor Not called
jaikiran Jul 15, 2010 9:43 AM (in response to bhavsar.er)paresh bhavsar wrote:
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>com.eks.ias.service.location.service.ExceptionInterceptor</interceptor-class>
<method>
<method-name>test</method-name>
</method>
</interceptor-binding>
As per the spec:
3. <interceptor-binding> <ejb-name>EJBNAME</ejb-name> <interceptor-class>INTERCEPTOR</interceptor-class> <method> <method-name>METHOD</method-name> </method> </interceptor-binding> This style is used to associate a method-level interceptor with the specified enterprise bean. If there are multiple methods with the same overloaded name, the element of this style refers to all the methods with the overloaded name. Method-level interceptors can only be associated with business methods of the bean class. Note that the wildcard value "*" cannot be used to specify method-level interceptors.
See the note in the above section (which for some reason isn't showing up as bold even after marking it as bold through the forum editor).