[TIBCO.EMS .NET client library 7.0 documentation]

Close a session and reclaim resources

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.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