[
https://issues.apache.org/jira/browse/CAMEL-21908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-21908:
--------------------------------
Summary: Property 'idleReceivesPerTaskLimit' in camel-jms not populated to
spring-jms (was: Property 'idleReceivesPerTaskLimit' in camel-jus not
populated to spring-jus)
> Property 'idleReceivesPerTaskLimit' in camel-jms 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
> Priority: Minor
> 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)