sruch
Jun 18th, 2008, 09:45 AM
Hi all,
I have currently a strange behaviour within an existing spring application where we try to integrate spring integration functionality. Here's the situation:
In a spring webapplication i have decorated a DAO with a interceptor. As long as i don't have a MessageChannel within the stacktrace looks good (the interceptor is only called once).
Callstack: DAO Caller - Interceptor A - DAO
As soon as i inject a MessageChannel the interceptor is called twice (according log-output and stacktrace within debugging).
Callstack: DAO Caller - Interceptor A - Interceptor A - DAO
The - more or less - same configuration of a testcase in a little standalone-program doesn't have this behaviour (it works fine there).
Can someone explain this behaviour? Any ideas?
Thanks and best regards,
Sandro
I have currently a strange behaviour within an existing spring application where we try to integrate spring integration functionality. Here's the situation:
In a spring webapplication i have decorated a DAO with a interceptor. As long as i don't have a MessageChannel within the stacktrace looks good (the interceptor is only called once).
Callstack: DAO Caller - Interceptor A - DAO
As soon as i inject a MessageChannel the interceptor is called twice (according log-output and stacktrace within debugging).
Callstack: DAO Caller - Interceptor A - Interceptor A - DAO
The - more or less - same configuration of a testcase in a little standalone-program doesn't have this behaviour (it works fine there).
Can someone explain this behaviour? Any ideas?
Thanks and best regards,
Sandro