JBoss Community

Default Interceptor Not called

reply from jaikiran pai in EJB 3.0 - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community