PDA

View Full Version : Interceptor is called twice



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

mbogoevici
Jun 18th, 2008, 12:14 PM
Hey Sandro,

Can you post your configuration file?

Thanks,

Marius

sruch
Jun 19th, 2008, 12:43 AM
Hi Marius,

I will post the config of the standalone test... otherwise it would be too much... :-)
But essentially all the components which we use in the webapplication are shown in the config (transaction-proxy, abstract-proxies, etc.). I have tried to reproduce it as near as possible to the webapplication.

Hope this helps...

Sandro