|
1 | 1 | /* |
2 | | - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
23 | 23 | import org.springframework.beans.factory.xml.ParserContext; |
24 | 24 | import org.springframework.integration.config.xml.AbstractChannelParser; |
25 | 25 | import org.springframework.integration.config.xml.IntegrationNamespaceUtils; |
| 26 | +import org.springframework.jms.listener.DefaultMessageListenerContainer; |
| 27 | +import org.springframework.jms.listener.SimpleMessageListenerContainer; |
26 | 28 | import org.springframework.util.StringUtils; |
27 | 29 |
|
28 | 30 | /** |
@@ -119,10 +121,10 @@ private static void setContainerClass(Element element, BeanDefinitionBuilder bui |
119 | 121 | String containerClass = element.getAttribute(CONTAINER_CLASS_ATTRIBUTE); |
120 | 122 | if (!StringUtils.hasText(containerClass) && StringUtils.hasText(containerType)) { |
121 | 123 | if ("default".equals(containerType)) { |
122 | | - containerClass = "org.springframework.jms.listener.DefaultMessageListenerContainer"; |
| 124 | + containerClass = DefaultMessageListenerContainer.class.getName(); |
123 | 125 | } |
124 | 126 | else if ("simple".equals(containerType)) { |
125 | | - containerClass = "org.springframework.jms.listener.SimpleMessageListenerContainer"; |
| 127 | + containerClass = SimpleMessageListenerContainer.class.getName(); |
126 | 128 | } |
127 | 129 | } |
128 | 130 | /* |
@@ -151,7 +153,7 @@ private static void setCache(Element element, ParserContext parserContext, BeanD |
151 | 153 | } |
152 | 154 | } |
153 | 155 | else { |
154 | | - builder.addPropertyValue("cacheLevelName", "CACHE_" + cache.toUpperCase()); |
| 156 | + builder.addPropertyValue("cacheLevelName", "CACHE_" + cache); |
155 | 157 | } |
156 | 158 | } |
157 | 159 | } |
|
0 commit comments