Krzysztof Mackowiak created CAMEL-21908:
-------------------------------------------
Summary: Property 'idleReceivesPerTaskLimit' in camel-jus not
populated to spring-jus
Key: CAMEL-21908
URL: https://issues.apache.org/jira/browse/CAMEL-21908
Project: Camel
Issue Type: Bug
Components: camel-jms
Affects Versions: 4.10.2, 4.10.1, 4.10.0, 4.9.0
Reporter: Krzysztof Mackowiak
Attachments: idleReceivesPerTaskLimit.patch
In Camel 4.9.0 as a result of ticket
[CAMEL-21189|https://issues.apache.org/jira/browse/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 :
if (idleReceivesPerTaskLimit != Integer.MIN_VALUE) {
container.setIdleReceivesPerTaskLimit(idleReceivesPerTaskLimit);
}
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)