On Wed, Dec 16, 2009 at 2:33 PM, titexe <[email protected]> wrote:
>
> thank you for your reply
>
> you're right, it is described in Chapter 5 Camel in Action.
>
Its just that error handling is complex and to explain and
documentation that in a way that holds hands and guides people is hard
to do with wiki pages where it get cluttered and more becomes a stack
of notes for reference.
So when the book go over this in 30 pages then I would refer to it, as
its the best we got if you want to learn how to use Camel error
handling in more details.
I am not as much trying to sell the book as such, but I dont foresee
any of us sitting down and writing a tutuorial on Camel error handling
in or spare time which would take many many hours to write.
> 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>
>
There is no such property on the dead letter channel
<property name="deadLetterUri"
value="activemq:queue:dead.error?level=ERROR"/>
And there are no level option on the JMS component either.
You can send it to a little route instead where you can log it before
sending to JMS
deadLetterUri=direct:toDLC
from(direct:toDLC).to("log:toDLC?showCaughtException=true").to("amq:queue:dead")
BTW: ActiveMQ do have a DLQ itself and can handle redelivery itself.
>
> 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.
>
>
--
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