[ https://issues.apache.org/jira/browse/CAMEL-7897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163791#comment-14163791 ]
Robert Elliot commented on CAMEL-7897: -------------------------------------- If you use the ActiveMQConnectionFactory directly, without the wrapping PooledConnectionFactory, the test will pass. > Camel consumes & discards activemq messages after suspension > ------------------------------------------------------------ > > Key: CAMEL-7897 > URL: https://issues.apache.org/jira/browse/CAMEL-7897 > Project: Camel > Issue Type: Bug > Components: camel-jms > Affects Versions: 2.14.0 > Environment: All > Reporter: Robert Elliot > Attachments: SuspendJmsTest.java, pom.xml > > > When used with a PooledConnectionFactory, a Camel Route that consumes via JMS > from an ActiveMQ endpoint will read one extra message and simply discard it > *after* it has completed suspension, if that message is sent within a second > of suspension being completed. > See attached test case. > As far as I can tell this is because nothing interrupts the taskExecutor on > DefaultMessageListenerContainer when a route is suspended. -- This message was sent by Atlassian JIRA (v6.3.4#6332)