Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CachingConnectionFactory.GetSession(IConnection, AcknowledgementMode, TimeSpan) Method

Template method for obtaining a (potentially cached) Session.

[Visual Basic]
Public Overrides Overloads Sub GetSession( _
   ByVal con As IConnection, _
   ByVal mode As AcknowledgementMode, _
   ByVal requestTimeout As TimeSpan _
)
[C#]
public override ISession GetSession(
   IConnection con,
   AcknowledgementMode mode,
   TimeSpan requestTimeout
);

Parameters

con
The connection to operate on.
mode
The session ack mode.
requestTimeout
The request timeout.

Return Value

the Session to use, or

null
to indicate creation of a raw standard Session

See Also

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