[ 
https://issues.apache.org/jira/browse/CAMEL-12741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16585718#comment-16585718
 ] 

Zoran Regvart edited comment on CAMEL-12741 at 8/20/18 9:53 AM:
----------------------------------------------------------------

[~davsclaus] I need some help here, it's easy to set the {{Exchange}} in 
{{SjmsMessage::copyFrom(Message)}}, I'm not sure if this is the right thing to 
do. Perhaps we should support type conversion in {{Message:getBody(Class, 
Object)}} if no {{Exchange}} is set on the message and {{CamelContext}} is set 
i.e. perform type conversion without exchange.


was (Author: zregvart):
[~davsclaus] I need some help here, it's easy to set the {{Exchange}} in 
{{SjmsMessage::copyFrom(Message), I'm not sure if this is the right thing to 
do. Perhaps we should support type conversion in {{Message:getBody(Class, 
Object)}} if no {{Exchange}} is set on the message and {{CamelContext}} is set 
i.e. perform type conversion without exchange.

> SjmsMessage should set Exchange in copyFrom
> -------------------------------------------
>
>                 Key: CAMEL-12741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12741
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sjms
>            Reporter: Zoran Regvart
>            Assignee: Zoran Regvart
>            Priority: Major
>             Fix For: 2.23.0
>
>
> When a copy of the {{SjmsMessage}} is created using {{copyFrom(Message)}} the 
> resulting message copy doesn't have the {{Exchange}} set. This prevents the 
> use of {{TypeConverter}} when {{Message:getBody(Class)}} is invoked.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to