On Tue, Jun 15, 2010 at 7:53 AM, mitul1411 <[email protected]> wrote: > > I am using Camel 2.3.0. I want to know the best possible option to do that. > An xml file is being validated and sent to further routing. If it is > invalidated , it is sent to an another queue with the dead letter channel > configuration as follows : > > <bean id="myDeadLetterErrorHandler" > class="org.apache.camel.builder.DeadLetterChannelBuilder"> > <property name="deadLetterUri" > value="jbi:service:http://myqueue.apache.org/errorProvider" /> > </bean> >
The caused exception is stored on the Exchange which is sent to the DLQ Exception cause = Exchange.getProperty(Exchange.EXCEPTION_CAUGHT, Exception.class); > > mitul1411 wrote: >> >> I am using the deal letter channel.. But only the invalidated file goes to >> the dead queue. I also want to send the exception to the same queue. Is >> that possible ? >> > > -- > View this message in context: > http://old.nabble.com/Dead-Letter-Channel-tp28887378p28887446.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
