Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SingleConnectionFactory.GetSession(IConnection, AcknowledgementMode) Method

Template method for obtaining a (potentially cached) Session.

[Visual Basic]
Public Overridable Overloads Sub GetSession( _
   ByVal con As IConnection, _
   ByVal mode As AcknowledgementMode _
)
[C#]
public virtual ISession GetSession(
   IConnection con,
   AcknowledgementMode mode
);

Parameters

con
The connection to operate on.
mode
The session ack mode.

Return Value

the Session to use, or

null
to indicate creation of a raw standard Session

See Also

SingleConnectionFactory Class | Spring.Messaging.Nms.Connections Namespace | SingleConnectionFactory.GetSession Overload List