Added "recovery-interval" attribute to <jms:listener-container>

Issue: SPR-10711
This commit is contained in:
Juergen Hoeller
2013-08-28 09:36:23 +02:00
parent 4c0da5867a
commit bb18f81b50
5 changed files with 100 additions and 20 deletions

View File

@@ -49,6 +49,8 @@ class JmsListenerContainerParser extends AbstractListenerContainerParser {
private static final String RECEIVE_TIMEOUT_ATTRIBUTE = "receive-timeout";
private static final String RECOVERY_INTERVAL_ATTRIBUTE = "recovery-interval";
@Override
protected BeanDefinition parseContainer(Element listenerEle, Element containerEle, ParserContext parserContext) {
@@ -160,6 +162,13 @@ class JmsListenerContainerParser extends AbstractListenerContainerParser {
}
}
String recoveryInterval = containerEle.getAttribute(RECOVERY_INTERVAL_ATTRIBUTE);
if (StringUtils.hasText(recoveryInterval)) {
if (containerType.startsWith("default")) {
containerDef.getPropertyValues().add("recoveryInterval", recoveryInterval);
}
}
String phase = containerEle.getAttribute(PHASE_ATTRIBUTE);
if (StringUtils.hasText(phase)) {
containerDef.getPropertyValues().add("phase", phase);