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

Claus Ibsen commented on CAMEL-26362:
-------------------------------------

PR: https://github.com/apache/camel/pull/30874

The sjms/sjms2 consumer is now ShutdownAware. With batching, the graceful 
shutdown waits for the batch being routed and for the buffered messages of an 
AUTO_ACKNOWLEDGE session, which are routed as soon as the consumer is suspended 
(no longer during the stop, where the 10 seconds executor wait could interrupt 
them). A transacted or CLIENT_ACKNOWLEDGE consumer starts no batch while it is 
suspended, so a stop no longer closes the session under a batch that has just 
started.

_Claude Code on behalf of davsclaus_

> Make the SJMS consumer shutdownAware when batching is enabled
> -------------------------------------------------------------
>
>                 Key: CAMEL-26362
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26362
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-sjms, camel-sjms2
>    Affects Versions: 4.24.0
>            Reporter: Marcus Ionker
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> The SJMS and SJMS2 consumer should be shutdownAware, in particular when 
> batching is enabled. This will give the consumer more time to process a batch 
> completely before the route is shutdown. Allowing the consumer to complete 
> the batch will avoid message loss with AUTO_ACKNOWLEDGE or duplicate 
> processing with session transacted or CLIENT_ACKNOWLEDGE.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to