What version of Camel do you use, and what kind of Camel component is
the message originally from

On Wed, Feb 15, 2017 at 3:22 PM, Tristan Hill <tris...@me.uk.eu.org> wrote:
> Hi,
>
> https://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Message.html#getBody(java.lang.Class)
> gives the impression that
> when called a conversion will be performed on the body.  When I use this
> method on a getUnitOfWork().getOriginalInMessage() though it doesn't do
> a conversion as there is no exchange set on the message.
>
> Perhaps in the DefaultUnitOfWork constructor the exchange should be set
> on originalInMessage for this to work?
>
> Someone else experienced the same issue here -
> http://camel.465427.n5.nabble.com/getOriginalMessage-td5748702.html#a5748723
>
> Thanks
> Tristan



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to