thank you for your reply

you're right, it is described in Chapter 5 Camel in Action.

For cons, I still have a problem with this config, property 'endpointUri'
does not recognize, below my config:


<route errorHandlerRef="myDeadLetterChannel">
</route>

<bean id="myDeadLetterChannel"
class="org.apache.camel.builder.DeadLetterChannelBuilder">
        <property name="endpointUri" value="activemq:queue:dead.original"/>
        <property name="useOriginalMessage" value="true"/>
        <property name="deadLetterUri"
value="activemq:queue:dead.error?level=ERROR"/>
        </bean>


Thanks in advance,

titexe


Claus Ibsen-2 wrote:
> 
> On Wed, Dec 16, 2009 at 10:49 AM, titexe <[email protected]> wrote:
>>
>> Hello,
>>
>> I would like to know the configuration of error handler & dead letter
>> channel to do the following:
>>
>> - Recover the original message an error in the route.
> 
> See useOriginalMessage
> 
> 
>> - Generating an error message in a dead letter queue (with a level of
>> debug
>> or error).
>>
> 
> 
> You can just use a bean or another route as dead letter queue endpoint
> and do whatever you want.
> 
> See more here
> http://camel.apache.org/error-handling-in-camel.html
> http://camel.apache.org/dead-letter-channel.html
> ... and chapter 5 in the Camel in Action book
> 
> 
>> my definitions of roads in spring xml. And the version I use camel 2.1
>> and
>> ActiveMQ 5.3.
>>
>> Thank you in advance.
>>
>> titexe
>> --
>> View this message in context:
>> http://old.nabble.com/Camel-2.1-%3A-Error-Handler---Recover-Original-Message-tp26808679p26808679.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Camel-2.1-%3A-Error-Handler---Recover-Original-Message-tp26808679p26811087.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to