camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sckwow <>
Subject Inflight message gone when CamelContext shutdown
Date Mon, 11 Aug 2014 04:15:56 GMT
I have a simple route in Camel 2.8.2 and ActiveMQ 5.7.0. the use case is
whenever there is exception happened during processing, the camelContext
will be shutdown.

Here is the CamelContext setup
	<camelContext id="camelContext"
xmlns="" autoStartup="true" >
		<errorHandler id="eh" type="TransactionErrorHandler"
		<redeliveryPolicyProfile id="redeliveryProfile" maximumRedeliveries="-1"
redeliveryDelay="1000" retryAttemptedLogLevel="WARN" 
        	<rollback />    
		<route id="route1" shutdownRunningTask="CompleteCurrentTaskOnly"
			<from uri="amq:queue" />
			<transacted />
			<bean ref="bean1" method="handle" />
			<bean ref="bean2" method="handle" />

when i call CamelContext.stop or using the
ServiceHelper.stopAndShutdownService(); to stop the context in another
thread, most of the time, inflight message will gone but sometimes, the
inflight message will stay in the queue...

but if i kill the java process directly, the message will be in the queue.

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

View raw message