Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1066

Spring property placesholder to be fully supported

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.5.0
    • Fix Version/s: None
    • Component/s: camel-spring
    • Labels:
      None

      Description

      When using a Spring PropertyPlaceholderConfigurer, properties are not replaced into the Camel DSL. A use case for using property substitution is to change the component type used in different deployments of the same app (such as between SEDA and JMS). You can then also use the same config file for testing by replacing JMS endpoints with mock ones.

      For example:

      <camel:camelContext trace="${traceMode}" useJmx="false">
        <camel:route>
          <camel:from uri="${queue.incoming}" />
          <camel:to uri="${queue.outgoing}" />
        </camel:route>
      </camel:camelContext>
      

      In Camel 1.5 the resulting routes are still named ${queue.incoming} instead of being replaced with jms:myQueue etc.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pledge Martin Gilday
              • Votes:
                3 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: