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

          Martin Gilday created issue -
          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.
          Claus Ibsen made changes -
          Field Original Value New Value
          Priority Critical [ 2 ] Major [ 3 ]
          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.
          Claus Ibsen made changes -
          Summary Property replacement has no effect Spring property placesholder has no effect
          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
          Martin Gilday made changes -
          Link This issue duplicates CAMEL-674 [ CAMEL-674 ]
          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.
          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 ]
          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.
          Claus Ibsen made changes -
          Resolution Won't Fix [ 2 ]
          Fix Version/s Future [ 11977 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Jeff Turner made changes -
          Project Import Sat Nov 27 00:14:50 EST 2010 [ 1290834890113 ]
          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
          Claus Ibsen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          464d 3h 51m 1 Claus Ibsen 17/Feb/10 14:11
          Resolved Resolved Closed Closed
          430d 19h 49m 1 Claus Ibsen 24/Apr/11 11:00

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development