camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: ConvertBodyTo is problem when transaction failed
Date Wed, 17 Nov 2010 02:48:16 GMT
On 11/17/10 12:29 AM, Claus Ibsen wrote:
> On Tue, Nov 16, 2010 at 3:10 PM, Kannan<ramkannan2003@gmail.com>  wrote:
>>
>> Hi
>>
>>    I am convert the message body to given class type and save the object
>> into DB.if transaction failed the message will send to dead letter queue.
>> Now deadLetter queue will contain converted type message or original message
>> ?
>
> By default the message contains whatever it was before the "step" in
> the Camel route failed.
>
> However you can use the .useOriginalMessage() option on the Dead
> Letter Channel to tell it to use the original input message instead.

What if there is an InputStream in the OriginalMessage?
I don't think we can read it twice if camel don't cache it.
>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/ConvertBodyTo-is-problem-when-transaction-failed-tp3267361p3267361.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Mime
View raw message