Skip to content

Commit 5e11bac

Browse files
committed
Polish "Configure ActiveMQConnectionFactory properly without spring-jms"
See gh-36767
1 parent bcfaad2 commit 5e11bac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisConnectionFactoryConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ static class SimpleConnectionFactoryConfiguration {
5151
@Bean(name = "jmsConnectionFactory")
5252
@ConditionalOnProperty(prefix = "spring.jms.cache", name = "enabled", havingValue = "false")
5353
ActiveMQConnectionFactory jmsConnectionFactory(ArtemisProperties properties, ListableBeanFactory beanFactory) {
54-
return createConnectionFactory(properties, beanFactory);
54+
return createJmsConnectionFactory(properties, beanFactory);
5555
}
5656

57-
private static ActiveMQConnectionFactory createConnectionFactory(ArtemisProperties properties,
57+
private static ActiveMQConnectionFactory createJmsConnectionFactory(ArtemisProperties properties,
5858
ListableBeanFactory beanFactory) {
5959
return new ArtemisConnectionFactoryFactory(beanFactory, properties)
6060
.createConnectionFactory(ActiveMQConnectionFactory.class);
@@ -71,7 +71,7 @@ CachingConnectionFactory cachingJmsConnectionFactory(JmsProperties jmsProperties
7171
ArtemisProperties properties, ListableBeanFactory beanFactory) {
7272
JmsProperties.Cache cacheProperties = jmsProperties.getCache();
7373
CachingConnectionFactory connectionFactory = new CachingConnectionFactory(
74-
createConnectionFactory(properties, beanFactory));
74+
createJmsConnectionFactory(properties, beanFactory));
7575
connectionFactory.setCacheConsumers(cacheProperties.isConsumers());
7676
connectionFactory.setCacheProducers(cacheProperties.isProducers());
7777
connectionFactory.setSessionCacheSize(cacheProperties.getSessionCacheSize());

0 commit comments

Comments
 (0)