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

camel-core - Allow @PropertyInject to split a string into array via delimiter option

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.6.0
    • camel-core
    • None
    • Unknown

    Description

      Hello, how can I use @PropertyInject in Camel to inject an array please?
      https://camel.apache.org/manual/bean-integration.html
      For example, I have hostnames = Value4,Value5,Value6 in cfg file.
      And I want to import these values as an array.

      Though for camel annotation we may add some option you can turn on to tell camel to convert/split the value, eg delimiter="," to say use comma for string split, that then becomes an array/list that can be injected.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: