Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in Java » MobiLink server API for Java reference » DBConnectionContext interface

 

getRemoteID method

Syntax
public java.lang.String getRemoteID( )
Remarks

Returns the remote ID of the database currently synchronizing on this connection. If your remote database is prior to version 10, it returns the MobiLink user name.

Returns

The remote ID.

See also
Example

The following example shows you how to output the remote ID for a DBConnectionContext.

Note

This example assumes you have a DBConnectionContext instance called _cc.

// The method used to output the remote ID.
public void outputRemoteID() {
    // output the Remote ID for the current synchronization
    String remoteID = _cc.getRemoteID();
    System.out.println(remoteID);
}