Use another route as your dead letter channel, and then in that route, you can add details to the message, and then send it to the actual DLQ.
deadLetterUri="direct:myDLQ" <route> <from uri="direct:myDLQ"/> <!-- add stuff to your message here --> ... <!-- and now send to the real dead letter queue --> <to uri="WMQ:DEADQ?disableReplyTo=true"/> </route> On Wed, Feb 22, 2012 at 6:47 AM, cmland <qiancheng...@gmail.com> wrote: > my xml file like this: > <camel:route errorHandlerRef="deadLetterErrorHandler" > > <camel:from uri="WMQ:TestQ?disableReplyTo=true"></camel:from> > <camel:transacted></camel:transacted> > <camel:process ref="testProcess"></camel:process> > <camel:to uri="WMQ:TestQ2?disableReplyTo=true"></camel:to> > </camel:route> > > <camel:errorHandler id="deadLetterErrorHandler" > type="DeadLetterChannel" > deadLetterUri="WMQ:DEADQ?disableReplyTo=true" > useOriginalMessage="true"> > <camel:redeliveryPolicy maximumRedeliveries="2" > redeliveryDelay="100" /> > </camel:errorHandler> > I want to put the uri "WMQ:TestQ?disableReplyTo=true" as a jms head property > when the message deliver to deadletter queue.Or add the uri to the message > body before deliver to deadletter queue. > what could i do ,any suggestion? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/I-want-to-put-extra-info-as-jms-head-property-when-the-message-deliver-to-the-deadletter-queue-tp5504201p5504201.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/