mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Actually accept String expressions for "prefetch" and "receive-timeout" in jms namespace
Issue: SPR-10986
This commit is contained in:
+2
-2
@@ -151,14 +151,14 @@ class JmsListenerContainerParser extends AbstractListenerContainerParser {
|
||||
String prefetch = containerEle.getAttribute(PREFETCH_ATTRIBUTE);
|
||||
if (StringUtils.hasText(prefetch)) {
|
||||
if (containerType.startsWith("default")) {
|
||||
containerDef.getPropertyValues().add("maxMessagesPerTask", new Integer(prefetch));
|
||||
containerDef.getPropertyValues().add("maxMessagesPerTask", prefetch);
|
||||
}
|
||||
}
|
||||
|
||||
String receiveTimeout = containerEle.getAttribute(RECEIVE_TIMEOUT_ATTRIBUTE);
|
||||
if (StringUtils.hasText(receiveTimeout)) {
|
||||
if (containerType.startsWith("default")) {
|
||||
containerDef.getPropertyValues().add("receiveTimeout", new Integer(receiveTimeout));
|
||||
containerDef.getPropertyValues().add("receiveTimeout", receiveTimeout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user