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

improving methods calls in bean component

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0
    • camel-core
    • None

    Description

      To invoke a bean taking multiple parameters we need to create an array. It is not really fluent and it could be improved.

      Claus suggested to modify the bean uri to provide parameters in a camel language.

      Example:
      from(...)
      .bean(XXX.class, "myMethod(${header.myHeader}, ${body}")
      .to(...).

      This cool be a really cool and useful feature.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            romain.manni-bucau Romain Manni-Bucau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: