See the wiki documentation for error hander:
http://activemq.apache.org/camel/error-handler.html

It has links to sub pages as well.

You can basically do something like this

exception(MyBusinessException).process(myErrorProcessor).to("seda:bad");

from("xxx").process(myBusinessProcessorThayMightThrowMyBusinessException).to("seda:good");

Then all MyBusinessException will be caught and routed differently.
You can also just catch Exception for all exceptions.


Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: 23. september 2008 22:50
To: Camel
Subject: Trying to understand how to deal with process() errors and creating an 
exceptionChannel for bad messages.

I have input messages that I am trying to process, and when there is an
error, I want to create a new exceptionMessage and put it onto an
inputErrorChannel .



-- 
---
Thank You...

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com

Reply via email to