camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dragisa Krsmanovic (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
Date Sun, 29 Jan 2012 03:28:12 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195688#comment-13195688
] 

Dragisa Krsmanovic commented on CAMEL-4949:
-------------------------------------------

As shown in the unit test, SedaConsumer does this correctly. It's only the JMS that keeps
retrying even when the shutdown is in progress. If your direct route is set to retry for a
long time (exponential backoff, many redeliveries etc.), system shutdown can take forever.
Infinite redelivery is set here just as an example. 
                
> On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms, camel-spring
>    Affects Versions: 2.9.0
>            Reporter: Dragisa Krsmanovic
>            Assignee: Claus Ibsen
>              Labels: shutdown
>         Attachments: CAMEL-4949.patch
>
>
> Our route looks like this:
> {code}
> from("activemq:start")
>    .to("direct:dir")
> {code}
> On shutdown, if there is a message in the direct: route, Camel will wait indefinitely
for the message to finish. Regardless of the shutdown strategy.
> See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message