Announcement Announcement Module
Collapse
No announcement yet.
Interceptor is called twice Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Interceptor is called twice

    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

  • #2
    Hey Sandro,

    Can you post your configuration file?

    Thanks,

    Marius

    Comment


    • #3
      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
      Last edited by sruch; Jun 19th, 2008, 12:53 AM.

      Comment

      Working...
      X