camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-7897) Camel consumes & discards activemq messages after suspension
Date Sun, 15 Feb 2015 16:36:12 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-7897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-7897.
--------------------------------
    Resolution: Won't Fix
      Assignee: Claus Ibsen

There is always a window of opportunity that the jms consumer pickup new messages while suspending.

You can set acceptMessagesWhileStopping=true and process the messages instead of rejecting
them.

Then when the suspending is complete new messages stats on the queue.

> 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
>            Assignee: Claus Ibsen
>         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.
> Expected behaviour - once a route is suspended, any messages sent to the queue from which
it consumes should remain on that queue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message