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

SetBody DSL should remove specialized Message as its no long apply

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.1, 2.0.0
    • 2.1.0
    • camel-core
    • None

    Description

      Also an issue from
      http://old.nabble.com/Original-message-body-lost-in-transacted-route-to26451809.html

      This issue is because the JmsMessage is still set as the IN message object and it contain the backing javax.jms.Message object. So when you for example use the setBody DSL to set a {{null} body or empty body then it may fallback and look into the specialized JmsMessage object.

      Set SetBodyProcessor should set a new DefaultMessage with the headers propagated and the new body evaluated.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: