From b9a70c6000a9f5ad89d71af364be4e99c173b1a3 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sat, 5 Jul 2014 08:59:11 +0200 Subject: [PATCH] Refined CachingConnectionFactory log messages Issue: SPR-11956 --- .../jms/connection/CachingConnectionFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java b/spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java index 1296be2927..d8a5b06e7b 100644 --- a/spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java +++ b/spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java @@ -233,7 +233,7 @@ public class CachingConnectionFactory extends SingleConnectionFactory { else { Session targetSession = createSession(con, mode); if (logger.isDebugEnabled()) { - logger.debug("Creating cached JMS Session for mode " + mode + ": " + targetSession); + logger.debug("Registering cached JMS Session for mode " + mode + ": " + targetSession); } session = getCachedSessionProxy(targetSession, sessionList); } @@ -393,7 +393,7 @@ public class CachingConnectionFactory extends SingleConnectionFactory { else { producer = this.target.createProducer(dest); if (logger.isDebugEnabled()) { - logger.debug("Creating cached JMS MessageProducer for destination [" + dest + "]: " + producer); + logger.debug("Registering cached JMS MessageProducer for destination [" + dest + "]: " + producer); } this.cachedProducers.put(cacheKey, producer); } @@ -439,7 +439,7 @@ public class CachingConnectionFactory extends SingleConnectionFactory { consumer = this.target.createConsumer(dest, selector); } if (logger.isDebugEnabled()) { - logger.debug("Creating cached JMS MessageConsumer for destination [" + dest + "]: " + consumer); + logger.debug("Registering cached JMS MessageConsumer for destination [" + dest + "]: " + consumer); } this.cachedConsumers.put(cacheKey, consumer); }