Closing the Connection with the Application

When using Component Enabler it is important to close the connection with the application when the client application terminates. If this is not done, the application and server do not recognise that the user has finished using the application and might refuse a further connection from the same user. The two methods that need to be called are:

  1. BYE to execute a BYE command. This performs the equivalent of a Page 2 BYE. In some circumstances, where you have switched to a different Agile Business Suite system, this might return you to the original system, such as with ROC.

  2. CLOSE to close the connection. This closes the connection, which should force the host to log you off. It is usually better to use the BYE method.

The corresponding Component Enabler method calls are as follows:

mvarConnection.Bye
mvarConnection.Close