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

Embedded values aren't resolved for the Messaging Annotations if we use <property-placeholder> instead of @PropertySource

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.0.6, 4.2.GA, 4.1.6
    • Fix Version/s: 4.0.8, 4.1.7, 4.2.1
    • Component/s: Core
    • Labels:

      Description

      Even if we have some workaround with Annotation Configuration shown in the linked SO question, there is no guaranty that we won't fail for some other reason.

      The good sample to fix is presented in the RabbitListenerAnnotationBeanPostProcessor and is based on the ((ConfigurableBeanFactory) this.beanFactory).resolveEmbeddedValue(value); instead of the this.environment.resolvePlaceholders(value);.

      Looks like EnvironmentAware injects not the final Environment...

        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: