Browse Source

Refined CachingConnectionFactory log messages

Issue: SPR-11956
pull/581/head
Juergen Hoeller 11 years ago
parent
commit
b9a70c6000
  1. 6
      spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java

6
spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java

@ -233,7 +233,7 @@ public class CachingConnectionFactory extends SingleConnectionFactory { @@ -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 { @@ -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 { @@ -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);
}

Loading…
Cancel
Save