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

          Claus Ibsen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Jeff Turner made changes -
          Project Import Sat Nov 27 00:14:50 EST 2010 [ 1290834890113 ]
          Claus Ibsen made changes -
          Resolution Won't Fix [ 2 ]
          Fix Version/s Future [ 11977 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Claus Ibsen made changes -
          Fix Version/s Future [ 11977 ]
          Summary Spring property placesholder has no effect Spring property placesholder to be fully supported
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Martin Gilday made changes -
          Link This issue duplicates CAMEL-674 [ CAMEL-674 ]
          Claus Ibsen made changes -
          Summary Property replacement has no effect Spring property placesholder has no effect
          Claus Ibsen made changes -
          Field Original Value New Value
          Priority Critical [ 2 ] Major [ 3 ]
          Martin Gilday created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development