interceptors

How to do Interceptors / Handlers in JAX-WS RI without using annotations?

We are using the Sun RI for JAX-WS (2.1.4) and we have a need for orthogonal web service endpoint interceptors (authentication, extracting SOAP headers for context, etc). Apparently the "normal" JAX-WS way to do this is using the HandlerChain annotation. This however forces us to modify the WSDL (even if we use the separate binding XML...

Proxy is created, and interceptor is in the __interceptors array, but the interceptor is never called

This is the first time I've used interceptors with the fluent registration and I'm missing something. With the following registration, I can resolve an IProcessingStep, and it's a proxy class and the interceptor is in the __interceptors array, but for some reason, the interceptor is not called. Any ideas what I'm missing? Thanks, Drew...

Help needed with Spring/Hibernate Lazy-loading

Hi, I know that this has been discussed lot of times. I just can't understand how this work or where my mistake is. I think giving you a reduced example is the best way to show you what I'm trying to do and what assumptions I'm taking... I have a Product class with a name. The name is a String property that is lazy. My DAO: public ab...

Filters vs Interceptors in Struts 2

What's the difference, really, between filters and interceptors? I realize that interceptors fire before and after an action, recursively, and filters can be configured to fire on actions and on certain url patterns. But how do you know when to use each one? In the book I'm reading on Struts 2, it seems that interceptors are being pus...

How to exclude stacktrace from axis2 fault response

Hello experts! I have an Axis2 web service which throws different detail messages in the fault response to signal problems in the call. At some point, due to server errors (others than the ones treated by the web service), in the fault detail string I get the full stacktrace of what happened. I do not want the client to see the stack ...

Spring2.5 WebMVC Servlets | Can interceptor based state information be stored in handlers for each request?

We have an interceptor that checks for an allowed (mobile) user-agent. We're using an internal database for recognizing them. So I've setup an interceptor that first recognizes the user-agent and creates a Phone object keeping all its capabilities for later or redirect to an error page if we don't like the agent. The interceptor's preHan...

EJB3 interceptors

I have been looking into how interceptors can be applied to session beans etc in EJB3.0. Can these be applied to servlets as well? ...

Castle.Core.InterceptorAttribute not injecting interceptor.

Based on the documentation for Castle.Core.InterceptorAttribute, I am trying to make this simple test pass, and am having no luck: using NUnit.Framework; using Castle.DynamicProxy; using Castle.Core; using Castle.MicroKernel; using Castle.MicroKernel.Registration; public interface IIntercepted { string get(); } [Interceptor(typeof(Te...