I'm tried several configurations. Exceptions inside jms/activemq are
completly ignored by camel arror handler.

This line in log drives me crazy.
2011-11-22 12:59:11,700 WARN
[org.apache.camel.component.jms.JmsMessageListenerContainer] - <Execution of
JMS message listener failed, and no ErrorHandler has been set.>

I found this 
http://mail-archives.apache.org/mod_mbox/activemq-users/201105.mbox/%3CBANLkTi=pdeudjzopqagg0hkcatazbq8...@mail.gmail.com%3E


How to setup route,error handling to catch  exceptions "inside" activeqm
propagation and resend it again to queue ?
Is it possible inside camel context ? 
   
     <camelContext xmlns="http://camel.apache.org/schema/spring";>
        <onException>
            <exception>org.apache.camel.RuntimeCamelException</exception>
            
<exception>org.springframework.mail.MailSendException</exception>
            <exception>javax.mail.MessagingException</exception>
             <redeliveryPolicy maximumRedeliveries="1" 
redeliveryDelay="30000"/>
               <camel:handled>
                <camel:constant>true</camel:constant>
                </camel:handled>
             <to uri="activemq:queue:businessFailed"/>
        </onException>  

        <route>
            <from uri="activemq:queue:ThankYou.EndDonationSuccessEvent" />
              <delay>
                <constant>30000</constant>
            </delay>
            <bean ref="emailTranslator" method="prepareThankYouEmail" />

            <to uri="activemq:queue:QUEUE.EMAIL_NOTIFICATIONS" />

        </route>

        </camelContext>


        <bean id="activemq" 
class="org.apache.activemq.camel.component.ActiveMQComponent">

                <property name="connectionFactory">
                        <bean 
class="org.apache.activemq.ActiveMQConnectionFactory">
                                <property name="brokerURL"
                                
value="failover:(tcp://mq-1:61616,tcp://mq-2:61616)?timeout=3000&amp;randomize=false"
/>
                        </bean>
                </property>
        </bean>

I'm using apache-camel 2.8.2 

--
View this message in context: 
http://camel.465427.n5.nabble.com/errorHandler-for-activemq-component-example-configuration-tp5013373p5013373.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to