[jboss-as7-dev] Does work @WebService with @Interceptor on AS 7.1.1.Final ?
Alessio Soldano
asoldano at redhat.com
Mon Jul 2 05:08:53 EDT 2012
This is probably https://issues.jboss.org/browse/JBWS-3441 . Did you
perhaps try with an EJB3 based WS endpoint?
Cheers
Alessio
On 06/27/2012 10:42 PM, Marcelo Zabalet wrote:
> 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?
>
> ----Binding---
> @InterceptorBinding
> @Target({METHOD, TYPE})
> @Retention(RUNTIME)
> @Inherited
> public @interface SomeInterceptorBinding { }
>
> ---Interceptor---
> @SomeInterceptorBinding
> @Interceptor
> public class SomeInterceptor {
> @AroundInvoke
> public Object handle(InvocationContext ctx) throws Exception {
> return ctx.proceed();
> }
> }
>
> ---WebService---
> @SomeInterceptorBinding
> @WebService
> public class AWebService {
> @WebMethod
> public void someMethod() {
> ...
> }
> }
>
> ---beans.xml---
> <?xml version="1.0" encoding="UTF-8"?>
> <beans ...>
> <interceptors>
> <class>com.xyz.SomeInterceptor</class>
> </interceptors>
> </beans>
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
--
Alessio Soldano
Web Service Lead, JBoss
More information about the jboss-as7-dev
mailing list