StartConnection

Starts the connection for this application. This method is equivalent to calling StartConnection(0), but is a non-blocking call which returns immediately. Use getConnectionStatus or the ApplicationCallback to retrieve the connection status.

Syntax

public void StartConnection()

Returns

None.

Examples

  • Start the Application
    StartConnection()
    

Usage

If you delete an application from SAP Control Center, when the client application calls StartConnection(), the following callback is triggered inside the ApplicationCallback handler:

void OnConnectionStatusChanged(int connectionStatus, int errorCode, String errorMessage);
errorCode = 580 
errorMessage = "Error: 580 Message: 'TM Error:InvalidAuthenticationParameters'" 

To continue using the application, call UnregisterApplication() to clean up the client state, and re-register using RegisterApplication(). You lose the previous subscription on the server side. Delete the client database and perform another initial synchronization.