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

SAP Sybase SQL Anywhere 16.0 » UltraLite - Java Programming » Tutorial: Building an Android application

 

Lesson 2: Starting the MobiLink server

In this lesson, you start the MobiLink server to perform synchronization.

Prerequisites

This lesson assumes you have completed all preceding lessons. See Lesson 1: Setting up a new Android project.

 Task
  • Start MobiLink by running the following command from %SQLANYSAMP16%\MobiLink\CustDB\:

    mlsrv16 -v+ -zu+ -c "DSN=SQL Anywhere 16 CustDB;UID=ml_server;PWD=sql" -x http(port=80) -ot ml.mls

    The -c option connects MobiLink to the SQL Anywhere CustDB database. The -v+ option sets a high level of verbosity so that you can follow what is happening in the MobiLink server messages window. The -x option specifies the port number being used for the communications. The -ot option specifies that a log file (ml.mls) is to be created in the directory where you started the MobiLink server.

Results

The MobiLink server has started.

 See also