E.g
@Interceptors(Impl.class)
The method where @AroundInvoke is applied, should have the following signature:
Object <METHOD>(InvocationContext) throws Exception
A default interceptor can be declared (only at the deployment descriptor file):
<assembly-descriptor>
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>actionbazaar.buslogic.ActionBazaarLogger</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
The default interceptor can be disabled, at the class or method level, using the @javax.interceptor.ExcludeDefaultInterceptors
The class interceptor can be disabled, at the method level, using the @javax.interceptor.ExcludeClassInterceptors
No comments:
Post a Comment