SPRNET-1017 - Apache.NMS.ActiveMQ.ConnectionClosedException when using CachingConnectionFactory

This commit is contained in:
markpollack
2008-08-30 12:06:51 +00:00
parent d0761781fd
commit c9fcc24a2a
2 changed files with 2 additions and 2 deletions

View File

@@ -255,7 +255,7 @@ namespace Spring.Messaging.Nms.Connections
{
foreach (DictionaryEntry entry in cachedProducers)
{
((IMessageProducer)entry.Value).Dispose();
((IMessageProducer)entry.Value).Close();
}
foreach (DictionaryEntry entry in cachedConsumers)
{

View File

@@ -124,7 +124,7 @@ namespace Spring.Messaging.Nms.Support
{
try
{
producer.Dispose();
producer.Close();
}
catch (NMSException ex)
{