You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/04/08 12:30:00 UTC

[jira] [Updated] (CAMEL-21908) camel-jms - Property 'idleReceivesPerTaskLimit' is not populated to spring-jms

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

Claus Ibsen updated CAMEL-21908:
--------------------------------
    Fix Version/s: 4.10.4

> camel-jms - Property 'idleReceivesPerTaskLimit' is not populated to spring-jms
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-21908
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21908
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 4.9.0, 4.10.0, 4.10.1, 4.10.2
>            Reporter: Krzysztof Mackowiak
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.12.0, 4.10.4
>
>         Attachments: idleReceivesPerTaskLimit.patch
>
>
> In Camel 4.9.0 as a result of ticket CAMEL-21189 there was a new property {{idleReceivesPerTaskLimit}} added to {{JmsComponent}} (camel-jms).
> Unfortunately this property is not populated to Spring JMS {{DefaultMessageListenerContainer}} so generally setting this property has no effect.
> So there is no possibility to override default value of this property defined {{DefaultMessageListenerContainer}} which is
>  - 10 for spring-jms version 6.2.0 and later,
>  - turned off (Integer.MIN_VALUE) for spring-jms version 6.1.x and earlier.
> To fix the problem there should be a fragment added to {{JmsConfiguration.configureDefaultMessageListenerContainer(...)}} method :
> {code:java}
> if (idleReceivesPerTaskLimit != Integer.MIN_VALUE) { container.setIdleReceivesPerTaskLimit(idleReceivesPerTaskLimit);
> }
> {code}
> Additionally there should be a default value for {{idleReceivesPerTaskLimit}} in {{{}JmsConfiguration{}}}. Spring JMS uses {{Integer.MIN_VALUE}} to mark default value.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)