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

Closes the connection and reclaims resources.

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

Syntax

public virtual void Close()
Public Overridable Sub Close
public:
virtual void Close()

Remarks

Closing the connection causes all temporary destinations to be deleted; you need not separately close the sessions, producers, and consumers associated with the connection.

Closing a connection deletes all temporary destinations associated with the connection.

Blocking

If any message listener or receive call associated with the connection 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.

Acknowledge

Closing a connection does not force acknowledgment in client-acknowledged sessions. When the program still has a message that it received from a connection that has since closed, its Message.Acknowledge method throws IllegalStateException.

Transactions

Closing a connection rolls back all open transactions in all sessions associated with the connection. When an external transaction manager coordinates transactions, it determines the final disposition of its open transactions.

See Also