camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: ConvertBodyTo is problem when transaction failed
Date Wed, 17 Nov 2010 09:39:16 GMT
On Wed, Nov 17, 2010 at 3:48 AM, Willem Jiang <willem.jiang@gmail.com> wrote:
> 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.
>>

Then you need to enable stream caching.

>>>
>>> --
>>> 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
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message