Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3672

@IdempotentReceiver annotation does not work with @Bean if the bean is a MessageHandler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.2 M1, 4.1.3
    • Component/s: Core
    • Labels:

      Description

      When @IdempotentReceiver is present in a @Bean method which returns a MessageHandler, the IdempotentReceiverInterceptor cannot be applied. If the @Bean method returns a Transformer, then it works fine.

      It seems @Bean for a MessageHandler has a complex id which the IdempotentReceiverAutoProxyCreator failed to match the bean name and apply the IdempotentReceiverInterceptor.

      Testing config and client have been attached to reproduce the issue.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            tommy_siu Tommy Siu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: