Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConnectionFactoryUtils.GetTargetSession Method

Return the innermost target Session of the given Session. If the given Session is a decorated session, it will be unwrapped until a non-decorated Session is found. Otherwise, the passed-in Session will be returned as-is.

[Visual Basic]
Public Shared Sub GetTargetSession( _
   ByVal session As ISession _
public static ISession GetTargetSession(
   ISession session


The session to unwrap

Return Value

The innermost target Session, or the passed-in one if no decorator

See Also

ConnectionFactoryUtils Class | Spring.Messaging.Ems.Connections Namespace