"[EMAIL PROTECTED]" wrote : I fail to see how you would get that behaviour...

I was doing invocation.getInterceptors()[someIndex] = MyDummyInterceptor.
It did the job - interceptor at someIndex was disabled.
But MyDummyInterceptor remained there for all subsequent calls.
Which was a surprise to me - I really thought invocation contained 
current-invocation-related interceptors stack :)

"[EMAIL PROTECTED]" wrote : But you can try to use the following Invocation 
method instead:
  | 
  |   | Object invokeNext(Interceptor[] newInterceptors) throws Throwable;
  |   | 
  | 

Yes, this way it works.
I'm eventually copying invocation interceptors into a new array, modifying it 
(not forgetting to remove the current interceptor from it) and calling 
invokeNext(newInterceptors)

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125608#4125608

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125608
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to