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.