Connection closure

An application closes a connection by calling the Close Connection method.

When an application closes a connection, XMS performs the following actions:

  • It closes all the sessions associated with the connection and deletes certain objects associated with these sessions. For more information about which objects are deleted, see Object Deletion. At the same time, XMS rolls back any transactions currently in progress within the sessions.
  • It ends the communications connection with the messaging server.
  • It releases the memory and other internal resources used by the connection.

XMS does not acknowledge the receipt of any messages that it has failed to acknowledge during a session, prior to closing the connection. For more information about acknowledging the receipt of messages, see Message acknowledgement.