Re: Camel Exception propogation to ActiveMQ - DLQ
Hi Are you using transactions, if so a rollback cannot enrich the message with any details from Camel, but only move the message as-is to the DLQ. If you want to enrich the message from Camel you would need to commit instead but let Camel enrich the message and send it to a new destination which is the dead letter queue On Thu, Mar 12, 2015 at 10:41 PM, bwest bwesterfi...@gmail.com wrote: Greetings, I'm trying to trap exception and place it on the header so when a message is DLQ'd we can see the exception. I've got a camel DLQ strategy configured and i'm extracting the exchange.EXCEPTION_CAUGHT. However, when the message is placed into the DLQ, all of my Camel headers are gone, including my exception header. I've poked around the internet and have made some minor changes. Such as placing my header on the exchange.getIN etc But to no avail. What am I missing here? Anyone have any insight? Thanks, Bryan -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Exception-propogation-to-ActiveMQ-DLQ-tp5764061.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
Camel Exception propogation to ActiveMQ - DLQ
Greetings, I'm trying to trap exception and place it on the header so when a message is DLQ'd we can see the exception. I've got a camel DLQ strategy configured and i'm extracting the exchange.EXCEPTION_CAUGHT. However, when the message is placed into the DLQ, all of my Camel headers are gone, including my exception header. I've poked around the internet and have made some minor changes. Such as placing my header on the exchange.getIN etc But to no avail. What am I missing here? Anyone have any insight? Thanks, Bryan -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Exception-propogation-to-ActiveMQ-DLQ-tp5764061.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: ActiveMQ DLQ
Ashwin, thank you very much ! It's really works :) Evgeny Ashwin Karpe wrote: Hi, Please check out this link dealing with exception handling. This area has been substantially revamped in Camel 1.5.x.x. It should answer all of your questions http://camel.apache.org/exception-clause.html http://camel.apache.org/exception-clause.html Hope this helps. Cheers, Ashwin... pevgen wrote: Hi. How can i save a message in my special endpoint only, and not save this message in ActiveMQ.DLQ ? my route route errorHandlerRef=deadLetterErrorHandlerNull from uri=activemq:queue:inA/ process ref=exceptionProcessor/ !-- throw new Exception(new Exception) -- to uri=activemq:queue:outA/ /route with bean id=deadLetterErrorHandlerNull class=org.apache.camel.builder.DeadLetterChannelBuilder property name=redeliveryPolicy ref=redeliveryPolicyConfigNull/ property name=defaultDeadLetterEndpointUri value=file://c:/Temp/amqtest/out/log/ /bean bean id=redeliveryPolicyConfigNull class=org.apache.camel.processor.RedeliveryPolicy property name=maximumRedeliveries value=0/ property name=delay value=0/ /bean in this configuration, i get my message (from activemq:queue:inA) and in file://c:/Temp/amqtest/out/log, and in ActiveMQ.DLQ... of couse, i can create another route from ActiveMQ.DLQ to log, but it is no fine Thanks, Evgeny -- View this message in context: http://www.nabble.com/ActiveMQ-DLQ-tp22076570s22882p22117878.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: ActiveMQ DLQ
Hi, Please check out this link dealing with exception handling. This area has been substantially revamped in Camel 1.5.x.x. It should answer all of your questions http://camel.apache.org/exception-clause.html http://camel.apache.org/exception-clause.html pevgen wrote: Hi. How can i save a message in my special endpoint only, and not save this message in ActiveMQ.DLQ ? my route route errorHandlerRef=deadLetterErrorHandlerNull from uri=activemq:queue:inA/ process ref=exceptionProcessor/ !-- throw new Exception(new Exception) -- to uri=activemq:queue:outA/ /route with bean id=deadLetterErrorHandlerNull class=org.apache.camel.builder.DeadLetterChannelBuilder property name=redeliveryPolicy ref=redeliveryPolicyConfigNull/ property name=defaultDeadLetterEndpointUri value=file://c:/Temp/amqtest/out/log/ /bean bean id=redeliveryPolicyConfigNull class=org.apache.camel.processor.RedeliveryPolicy property name=maximumRedeliveries value=0/ property name=delay value=0/ /bean in this configuration, i get my message (from activemq:queue:inA) and in file://c:/Temp/amqtest/out/log, and in ActiveMQ.DLQ... of couse, i can create another route from ActiveMQ.DLQ to log, but it is no fine Thanks, Evgeny - --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/ActiveMQ-DLQ-tp22076570s22882p22115149.html Sent from the Camel - Users mailing list archive at Nabble.com.
ActiveMQ DLQ
Hi. How can i save a message in my special endpoint only, and not save this message in ActiveMQ.DLQ ? my route route errorHandlerRef=deadLetterErrorHandlerNull from uri=activemq:queue:inA/ process ref=exceptionProcessor/ !-- throw new Exception(new Exception) -- to uri=activemq:queue:outA/ /route with bean id=deadLetterErrorHandlerNull class=org.apache.camel.builder.DeadLetterChannelBuilder property name=redeliveryPolicy ref=redeliveryPolicyConfigNull/ property name=defaultDeadLetterEndpointUri value=file://c:/Temp/amqtest/out/log/ /bean bean id=redeliveryPolicyConfigNull class=org.apache.camel.processor.RedeliveryPolicy property name=maximumRedeliveries value=0/ property name=delay value=0/ /bean in this configuration, i get my message (from activemq:queue:inA) and in file://c:/Temp/amqtest/out/log, and in ActiveMQ.DLQ... Thanks, Evgeny -- View this message in context: http://www.nabble.com/ActiveMQ-DLQ-tp22076339s22882p22076339.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: ActiveMQ DLQ
Hi You can use the exception clause to catch all exceptions and mark them as handled, and then route it to your file destination. See: http://camel.apache.org/exception-clause.html On Wed, Feb 18, 2009 at 11:53 AM, pevgen pev...@km.ru wrote: Hi. How can i save a message in my special endpoint only, and not save this message in ActiveMQ.DLQ ? my route route errorHandlerRef=deadLetterErrorHandlerNull from uri=activemq:queue:inA/ process ref=exceptionProcessor/ !-- throw new Exception(new Exception) -- to uri=activemq:queue:outA/ /route with bean id=deadLetterErrorHandlerNull class=org.apache.camel.builder.DeadLetterChannelBuilder property name=redeliveryPolicy ref=redeliveryPolicyConfigNull/ property name=defaultDeadLetterEndpointUri value=file://c:/Temp/amqtest/out/log/ /bean bean id=redeliveryPolicyConfigNull class=org.apache.camel.processor.RedeliveryPolicy property name=maximumRedeliveries value=0/ property name=delay value=0/ /bean in this configuration, i get my message (from activemq:queue:inA) and in file://c:/Temp/amqtest/out/log, and in ActiveMQ.DLQ... Thanks, Evgeny -- View this message in context: http://www.nabble.com/ActiveMQ-DLQ-tp22076339s22882p22076339.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/
ActiveMQ DLQ
Hi. How can i save a message in my special endpoint only, and not save this message in ActiveMQ.DLQ ? my route route errorHandlerRef=deadLetterErrorHandlerNull from uri=activemq:queue:inA/ process ref=exceptionProcessor/ !-- throw new Exception(new Exception) -- to uri=activemq:queue:outA/ /route with bean id=deadLetterErrorHandlerNull class=org.apache.camel.builder.DeadLetterChannelBuilder property name=redeliveryPolicy ref=redeliveryPolicyConfigNull/ property name=defaultDeadLetterEndpointUri value=file://c:/Temp/amqtest/out/log/ /bean bean id=redeliveryPolicyConfigNull class=org.apache.camel.processor.RedeliveryPolicy property name=maximumRedeliveries value=0/ property name=delay value=0/ /bean in this configuration, i get my message (from activemq:queue:inA) and in file://c:/Temp/amqtest/out/log, and in ActiveMQ.DLQ... of couse, i can create another route from ActiveMQ.DLQ to log, but it is no fine Thanks, Evgeny -- View this message in context: http://www.nabble.com/ActiveMQ-DLQ-tp22076570s22882p22076570.html Sent from the Camel - Users mailing list archive at Nabble.com.