I was using ActiveMQ 5.5 with Camel 2.7.0 and during a update of the route
lost some messages and found this error in the log

2011-06-13 13:25:42,950 | INFO  | Starting to graceful shutdown 1 routes
(timeout 300 seconds) | org.apache.camel.impl.DefaultShutdownStrategy |
qtp788458698-45
2011-06-13 13:25:42,971 | WARN  | Rejecting received message because of
the listener container having been stopped in the meantime:
ActiveMQTextMessage


My route is something like:

<from uri="activemq:component?concurrentConsumers=300"/>
    <choice id="choice2">
        <when>
                <simple>${in.headers.JMSType} == 'bob'</simple>
                <multicast>
                        <to uri="log:metrics?groupInterval=10000" id="to11"/>
                        <to uri="activemq:component2" id="to12"/>
                        <to uri="activemq:monitor.in"/>
                </multicast> 
        </when>


I did a search and found a bug corrected back in Camel 2.2 but nothing
since then. Is there anyway to prevent accepting/rejecting messages when
restarting the route?



Reply via email to