You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/04/25 14:06:03 UTC
[jira] [Resolved] (CAMEL-5216) ConvertBodyTo should reset message
type like transform EIP does
[ https://issues.apache.org/jira/browse/CAMEL-5216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-5216.
--------------------------------
Resolution: Fixed
> 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