From 875fedd45bbf52d4747b693b0a07d03b8ce5af7a Mon Sep 17 00:00:00 2001 From: markpollack Date: Thu, 14 Aug 2008 21:16:20 +0000 Subject: [PATCH] misc cleanup --- .../Nms/Connections/CachingConnectionFactory.cs | 2 +- .../Messaging/Nms/Core/NmsGatewaySupport.cs | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/CachingConnectionFactory.cs b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/CachingConnectionFactory.cs index 6bed6cfd..457b8524 100644 --- a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/CachingConnectionFactory.cs +++ b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/CachingConnectionFactory.cs @@ -30,7 +30,7 @@ namespace Spring.Messaging.Nms.Connections { /// /// subclass that adds - /// Session and MessageProducer caching. This ConnectionFactory + /// Session, MessageProducer, and MessageConsumer caching. This ConnectionFactory /// also switches the ReconnectOnException property to true /// by default, allowing for automatic recovery of the underlying /// Connection. diff --git a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Core/NmsGatewaySupport.cs b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Core/NmsGatewaySupport.cs index 95fe961e..b3c50638 100644 --- a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Core/NmsGatewaySupport.cs +++ b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Core/NmsGatewaySupport.cs @@ -33,7 +33,6 @@ namespace Spring.Messaging.Nms.Core /// It will create its own NmsTemplate if a ConnectionFactory is passed in. /// A custom NmsTemplate instance can be created for a given ConnectionFactory /// through overriding the createNmsTemplate method. - /// /// public class NmsGatewaySupport : IInitializingObject { @@ -44,7 +43,7 @@ namespace Spring.Messaging.Nms.Core #endregion - private NmsTemplate jmsTemplate; + private NmsTemplate nmsTemplate; /// @@ -53,8 +52,8 @@ namespace Spring.Messaging.Nms.Core /// The NMS template. public NmsTemplate NmsTemplate { - get { return jmsTemplate; } - set { jmsTemplate = value; } + get { return nmsTemplate; } + set { nmsTemplate = value; } } /// @@ -66,11 +65,11 @@ namespace Spring.Messaging.Nms.Core { get { - return (jmsTemplate != null ? this.jmsTemplate.ConnectionFactory : null); + return (nmsTemplate != null ? this.nmsTemplate.ConnectionFactory : null); } set { - this.jmsTemplate = CreateNmsTemplate(value); + this.nmsTemplate = CreateNmsTemplate(value); } } @@ -93,7 +92,7 @@ namespace Spring.Messaging.Nms.Core /// public virtual void AfterPropertiesSet() { - if (jmsTemplate == null) + if (nmsTemplate == null) { throw new ArgumentException("connectionFactory or jmsTemplate is required"); }