Hi But using what Willem suggested is better with the errorHandler(deadLetterChannel("YOUR BAD QUEUE")
Actually you can use that in combination with the exception(XXX.class) the exception is there fore more fine grained control of the different exceptions thrown so you can route them differently than all going into "YOUR BAD QUEUE" Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Claus Ibsen [mailto:[EMAIL PROTECTED] Sent: 24. september 2008 08:57 To: camel-user@activemq.apache.org Subject: RE: Trying to understand how to deal with process() errors and creating an exceptionChannel for bad messages. 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