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

Add component for language so you send messages to endpoints which evaluates language scripts on the message

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      This allows dynamic routing and having scripts being executed by sending to a dynamic created endpoint uri. For example using the routing slip or dynamic router EIP.

      For example to convert the message to a specific type you can send to the language endpoint

      "language:simple:${bodyAs(String)"
      

      There should maybe be an option to indicate whether or not the language script should affect the current message. For example to prepend with Hello you can do

      "language:simple:Hello ${body}"
      

      But it would be nice to be able to specify if we want to transform or not. Sometimes you may just want to execute a script without altering the message in any way.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: