Claus Ibsen created CAMEL-5216:
----------------------------------

             Summary: ConvertBodyTo should reset message type like transform 
EIP does
                 Key: CAMEL-5216
                 URL: https://issues.apache.org/jira/browse/CAMEL-5216
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.9.3, 2.10.0


We should make convertBodyTo alike transform/setBody, as when you change the 
message body, then if any specialized message instances, then we should copy 
the message to a default message, and set the type converted body. This is how 
those other EIPs does it.

If you do a 
{code}
from file
  convertBodyTo String
  to file
{code}

Then the file producer may detect the GenericFileMessage, from the consumer. 
But the convert body to, should have converted the message into a default 
message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to