I'm trying to use interceptors in conjuntion with webservices on AS 7.1.1.Final as the example shows below. The interceptor intercepts well until it is combined with @WebService. Is this supposed to work? Am I missing something?<br>
<br>----Binding---<br>@InterceptorBinding<br>@Target({METHOD, TYPE})<br>@Retention(RUNTIME)<br>@Inherited<br>public @interface SomeInterceptorBinding { }<br><br>---Interceptor---<br>@SomeInterceptorBinding<br>@Interceptor<br>
public class SomeInterceptor {<br> @AroundInvoke<br> public Object handle(InvocationContext ctx) throws Exception {<br> return ctx.proceed();<br> }<br>}<br><br>---WebService---<br>@SomeInterceptorBinding<br>
@WebService<br>public class AWebService {<br> @WebMethod<br> public void someMethod() {<br> ...<br> }<br>}<br><br>---beans.xml---<br><?xml version="1.0" encoding="UTF-8"?><br><beans ...><br>
<interceptors><br> <class>com.xyz.SomeInterceptor</class><br> </interceptors><br></beans><br><br><br>