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

Poller is no injected with the custom ErrorHandler when error-channel is provided

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: None
    • Labels:
      None

      Description

      In the configuration as such:

      <int:bridge input-channel="queueChannel" output-channel="directChannel2">
      	<int:poller fixed-rate="60000" max-messages-per-poll="10" error-channel="someErrorChannel"/>
      </int:bridge>
      

      One would expect the downstream errors to go to 'someErrorChannel', but instead they go to the default 'errorChannel'

      The real issue is that ConsumerEndpointFactoryBean is not initializing PollingConsumer with ErrorHandler from PollerMetadata. (e.g., pollingConsumer.setErrorHandler(this.pollerMetadata.getErrorHandler()); ) as we do in SourcePollingChannelAdapterFactoryBean

        Attachments

          Activity

            People

            • Assignee:
              oleg.zhurakousky@springsource.com Oleg Zhurakousky
              Reporter:
              oleg.zhurakousky@springsource.com Oleg Zhurakousky
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: