Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CachingConnectionFactory.CacheConsumers Property

Gets or sets a value indicating whether o cache JMS MessageConsumers per NMS Session instance.

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

Property Value

true to cache consumers per session instance; otherwise, false.

Remarks

Mmore specifically: one MessageConsumer per Destination, selector String and Session. Note that durable subscribers will only be cached until logical closing of the Session handle.

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

See Also

CachingConnectionFactory Class | Spring.Messaging.Nms.Connections Namespace