camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darwish <>
Subject AMQ connection factory redelivery option against transactional error handler redelivery policy
Date Tue, 25 Jun 2013 10:43:01 GMT
I have transacted route which consume messages  from AMQ , the connection 
factory that i used is defined as follow (maximumRedeliveries=10)

<bean id="jmsConnectionFactory"
		<property name="brokerURL" value="tcp://" />
		<property name="redeliveryPolicy">
			<bean class="org.apache.activemq.RedeliveryPolicy">
				<property name="maximumRedeliveries" value="10" />

The transacted route reference the following transcriptional error handler 

<camel:errorHandler type="TransactionErrorHandler" id="TxErrorHandler"
			<camel:redeliveryPolicy maximumRedeliveries="10" redeliveryDelay="3000"
logRetryAttempted="true" logExhausted="true" retriesExhaustedLogLevel="WARN"
retryAttemptedLogLevel="WARN" />

my route handle exception as follow 

<from uri="AMQ:queue:foo" />
				<log message="Handled!" />
				<process ref="handleError"></process>
				<rollback markRollbackOnly="true" inheritErrorHandler="true" />

what happening is  on exception block executed 10 times! 
when i set maximumRedeliveries at AMQ connection factory  to 0 , things work
as expected 

is this normal? 

AMQ version 5.8
Camel 2.11

Othman Darwish
ProgressSoft Corp.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message