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

ASF GitHub Bot commented on CAMEL-12741:
----------------------------------------

GitHub user zregvart opened a pull request:

    https://github.com/apache/camel/pull/2483

    CAMEL-12741: type conversion with SjmsMessage

    If we don't copy Exchange in `SjmsMessage::copyFrom` then type conversion 
doesn't work.
    
    I'm not sure what approach to take for resolving 
[CAMEL-12741](https://issues.apache.org/jira/browse/CAMEL-12741). 
    
    I've created two commits with two options that could help here, not sure 
what option (or both?) should we implement.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zregvart/camel CAMEL-12741

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2483.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2483
    
----
commit 8731e90d2ac680a40b90bb21406b688e95c8e5bd
Author: Zoran Regvart <zregvart@...>
Date:   2018-08-20T09:55:18Z

    Option A: set the Exchange of the original message

commit 6ac7c7b3cc4020f17a939d79d86b57d8abcde189
Author: Zoran Regvart <zregvart@...>
Date:   2018-08-20T09:55:39Z

    Option B: support 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