I found a solution for this. I added the following and now the Camel forces the route to shutdown in 1 seconds (timeout time) instead of the default 300 seconds.
<bean id="shutdown" class="org.apache.camel.impl.DefaultShutdownStrategy"> <property name="timeout" value="1" /> </bean> -- View this message in context: http://camel.465427.n5.nabble.com/Options-for-creating-dynamic-filters-tp5716584p5716585.html Sent from the Camel - Users mailing list archive at Nabble.com.