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

Convert to requested type values retrieved from the repository

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.19.3
    • Fix Version/s: 2.19.4, 2.20.0
    • Component/s: camel-core
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      Try to convert values resolved from the registry to the requested type.

      Currently if a component parameter is specified directly in the URI or using the properties component it is converted to the type required by the component if possible:

      e.g.

      "seda:s?concurrentConsumers=1"
      "seda:s?concurrentConsumers={{threadCount}}"
      

      work OK, the String property is converted to Integer.

      However if the parameter is a registry reference no conversion takes place:

      e.g

      "seda:s?concurrentConsumers=#threadCount" 
      

      fails if the values stored in the registry is a String, the value is not converted to Integer

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                isavin Ion Savin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: