camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele <>
Subject Error Handling and Redelivery Policy between routes
Date Thu, 28 Jan 2016 11:28:56 GMT
Hi everyone,

error handling and redelivery policy do not work fine when a main route
requests enricher from subroute. When an error accours in subroute, the
exception is propagated to main route wich handles it by DLQError handler
but the delivery attempt remains at 1. It is not incremented until the

Log message:
Failed delivery for (MessageId: ID-FGBAL201530-55545-1453977437889-9-22 on
ExchangeId: ID-FGBAL201530-55545-1453977437889-9-5).* On delivery attempt:
1* caught: org.apache.camel.CamelExchangeException: JettyClient failed cause
by: Connection refused: no further information.
Exchange[JmsMessage@0x6b2b6e67]. Caused by: [ -
Connection refused: no further information]

This is a my route:

<route id="CRM_LoginRoute" errorHandlerRef="NoErrorHandler" >
			<from uri="direct:crm-login" />
				<process ref="CRMLoginProcessor" />
				<marshal ref="Gson" />
				<log message="Sent Request login to CRM: ${body}" loggingLevel="INFO"/>
				<log message="Received Response login from CRM: ${body}"
				<unmarshal ref="Gson" />
				<log message="Authentication successful on CRM!" />

		<route id="ProcessingMessageData_Route" errorHandlerRef="dlqErrorHandler"
			<from uri="activemq:queue:IF_CUSTOMER_Inbound-NormalizedTickets" />
					<enrich uri="direct:crm-login" strategyRef="OAuthStrategy"
aggregateOnException="false" />

				<log message="Token ${in.header.OAuth-Token}" loggingLevel="DEBUG"/>
				<marshal ref="Gson" />
				<setHeader headerName="Content-Type">
				<setHeader headerName="CamelHttpMethod">
				<log message="Request sent to CRM: ${body}" loggingLevel="INFO" />
				<setHeader headerName="CRMInsertTicketPath">
				<log message="CRMInsertTicketPath:
$simple{in.header.CRMInsertTicketPath}" />
				<recipientList stopOnException="true" parallelProcessing="false"
					<to uri="activemq:queue:IF_CUSTOMER_Inbound-ProcessedTickets" />

Thanks in advance

Best Regards 


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

View raw message