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

          Show
          Claus Ibsen added a comment - See FAQ: http://activemq.apache.org/camel/how-do-i-use-spring-property-placeholder-with-camel-xml.html
          Hide
          Claus Ibsen added a comment -

          Lowering priority - cant be critical.

          Requires Spring 3.0 as spring has to do some internal changes to allow custom spring handlers to get access to the property place holder stuff. There should be a JIRA ticket in the spring roadmap filed by James Strachan about this.

          Show
          Claus Ibsen added a comment - Lowering priority - cant be critical. Requires Spring 3.0 as spring has to do some internal changes to allow custom spring handlers to get access to the property place holder stuff. There should be a JIRA ticket in the spring roadmap filed by James Strachan about this.
          Hide
          Claus Ibsen added a comment -

          I also think we have a ticket for this request in our tracker somewhere.

          Show
          Claus Ibsen added a comment - I also think we have a ticket for this request in our tracker somewhere.
          Hide
          Martin Gilday added a comment -
          Show
          Martin Gilday added a comment - I think it is this issue http://jira.springframework.org/browse/SPR-4466
          Hide
          Claus Ibsen added a comment -

          Updated FAQ with the entry to the SPR issue.

          Show
          Claus Ibsen added a comment - Updated FAQ with the entry to the SPR issue.
          Hide
          Claus Ibsen added a comment -

          We have the Camel properties component which supports property placeholders fully.

          Using Spring property placeholders is not possible unless Spring Framework makes that possible.

          Show
          Claus Ibsen added a comment - We have the Camel properties component which supports property placeholders fully. Using Spring property placeholders is not possible unless Spring Framework makes that possible.
          Hide
          Claus Ibsen added a comment -

          Closing all resolved tickets from 2010 or older

          Show
          Claus Ibsen added a comment - Closing all resolved tickets from 2010 or older

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development