Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CachingConnectionFactory.CacheProducers Property

Gets or sets a value indicating whether to cache MessageProducers per Session instance. (more specifically: one MessageProducer per Destination and Session).

[Visual Basic]
Public Property CacheProducers() As Boolean
   Public Get
   End Get
   Public Set
   End Set
End Property
public bool CacheProducers { public get; public set; }

Property Value

true if should cache message producers; otherwise, false.


Default is "true". Switch this to "false" in order to always, recreate MessageProducers on demand.

See Also

CachingConnectionFactory Class | Spring.Messaging.Nms.Connections Namespace