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

The AbstractMethodAnnotationPostProcessor uses `beanFactory.initializeBean` twice for the auto-created channels

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.2 RC1
    • Fix Version/s: 4.2.GA
    • Component/s: Core
    • Labels:

      Description

      The code looks like:

      this.beanFactory.registerSingleton(inputChannelName, inputChannel);
      this.beanFactory.initializeBean(inputChannel, inputChannelName);
      inputChannel = (MessageChannel) this.beanFactory.initializeBean(inputChannel, inputChannelName);
      

      Two last lines do the same which may cause some unexpected effect for announced singleton beans.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: