Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CachingConnectionFactory.SessionCacheSize Property

Gets or sets the size of the session cache.

[Visual Basic]
Public Property SessionCacheSize() As Integer
   Public Get
   End Get
   Public Set
   End Set
End Property
public int SessionCacheSize { public get; public set; }

Property Value

The size of the session cache.


This cache size is the maximum limit for the number of cached Sessions per session acknowledgement type (auto, client, dups_ok, transacted). As a consequence, the actual number of cached Sessions may be up to four times as high as the specified value - in the unlikely case of mixing and matching different acknowledgement types.

Default is 1: caching a single Session, (re-)creating further ones on demand. Specify a number like 10 if you'd like to raise the number of cached Sessions; that said, 1 may be sufficient for low-concurrency scenarios.

See Also

CachingConnectionFactory Class | Spring.Messaging.Ems.Connections Namespace