Camel
  1. Camel
  2. CAMEL-1066

Spring property placesholder to be fully supported

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development