Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageListenerContainer.ExposeListenerSession Property

Gets or sets a value indicating whether to expose listener session to a registered ISessionAwareMessageListener as well as to NmsTemplate calls.

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

Property Value

true if expose listener session; otherwise, false.


Default is "true", reusing the listener's Session. Turn this off to expose a fresh Session fetched from the same underlying Connection instead, which might be necessary on some messaging providers.

Note that Sessions managed by an external transaction manager will always get exposed to NmsTemplate calls. So in terms of NmsTemplate exposure, this setting only affects locally transacted Sessions.

See Also

AbstractMessageListenerContainer Class | Spring.Messaging.Nms.Listener Namespace