Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsAccessor.SessionTransacted Property

Set the transaction mode that is used when creating a NMS Session. Default is "false".

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


Setting this flag to "true" will use a short local NMS transaction when running outside of a managed transaction, and a synchronized local NMS transaction in case of a managed transaction being present. The latter has the effect of a local NMS transaction being managed alongside the main transaction (which might be a native ADO.NET transaction), with the NMS transaction committing right after the main transaction.

See Also

NmsAccessor Class | Spring.Messaging.Nms.Support Namespace