Collapse All Expand All

.NET Framework Class Library
Session Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

Close a session and reclaim resources

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)

# Syntax

    public void Close()

    Public Sub Close

    public:
    void Close()

# Remarks

Closing a session automatically closes its consumers (except for durable subscribers), producers and browsers.

Blocking

If any message listener or receive call associated with the session is processing a message when the program calls this method, all facilities of the connection and its sessions remain available to those listeners until they return. In the meantime, this method blocks until that processing completes -- that is, until all message listeners and receive calls have returned. A blocked message consumer receive call returns null when this session is closed.

Transactions

Closing a session rolls back the open transaction in the session.

# See Also

Session Class
TIBCO.EMS.UFO Namespace