Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SingleConnectionFactory.GetSession Method

Template method for obtaining a (potentially cached) Session.

[Visual Basic]
Public Overridable Sub GetSession( _
   ByVal con As IConnection, _
   ByVal mode As SessionMode _
)
[C#]
public virtual ISession GetSession(
   IConnection con,
   SessionMode 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.Ems.Connections Namespace