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

The combination of the transacted DSL together with the <setHeader> or <setBody> prohibits to resolve the properties properly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.2
    • 2.9.5, 2.10.3, 2.11.0
    • camel-core
    • None
    • Unknown

    Description

      Given the property myKey defined as:

      myKey=myValue
      

      Then consider the following trivial route:

      <route>
        <from uri="activemq:queue:okay" />
          <transacted />
          <setHeader headerName="myHeader">
            <constant>{{myKey}}</constant>
          </setHeader>
        <to uri="mock:test" />
      </route>
      

      Because of the usage of the transacted DSL the property placeholder {{myKey}} will not be resolved to myValue properly. This behaviour would disappear if you would remove the transacted DSL. And I'm observing the same behaviour using the setBody DSL as well.

      Attachments

        1. CAMEL-5796-fix.patch
          4 kB
          Claus Ibsen
        2. CAMEL-5796.patch
          9 kB
          Babak Vahdat

        Activity

          People

            bvahdat Babak Vahdat
            bvahdat Babak Vahdat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: