Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SingleConnectionFactory.ReconnectOnException Property

Gets or sets a value indicating whether the single Connection should be reset (to be subsequently renewed) when a NMSException is reported by the underlying Connection.

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

Property Value

true attempt to reconnect on exception during next access; otherwise, false.


Default is

. Switch this to
to automatically trigger recover based on your messaging provider's exception notifications.

Internally, this will lead to a special ExceptionListener (this SingleConnectionFactory itself) being registered with the underlying Connection. This can also be combined with a user-specified ExceptionListener, if desired.

See Also

SingleConnectionFactory Class | Spring.Messaging.Nms.Connections Namespace