Skip to content

RetryTopicBootstrapper's internal bean cannot be overriden #1917

@celcius112

Description

@celcius112

For more information please read this discussion and propositions by @garyrussell and @tomazfernandes: #1914.

As discussed in the discussion above, it is apparently possible to override internal beans in RetryTopicBootstrapper, for instance:

  @Bean("internalDeadLetterPublishingRecovererProvider")
  public DeadLetterPublishingRecovererFactory retryTopicConfiguration(DestinationTopicResolver destinationTopicResolver) {
    return new DeadLetterPublishingRecovererFactory(destinationTopicResolver);
  }

However, after testing in a Spring Boot application, it does not seem to be possible, since RetryTopicBootstraper is bootstraped before the application configuration, as seen in this demo application:
demo 2 2.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions