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 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using direct row handling


Lesson 6: Starting the MobiLink server

In this lesson, you start the MobiLink server. Start the MobiLink server (mlsrv16) using the -c option to connect to your consolidated database. Use the -sl java or -sl dnet option to load your Java or .NET class, respectively.


This lesson assumes you have completed all preceding lessons. See Lesson 1: Setting up a text file data source.

This lesson assumes that you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Using direct row handling.

  • Connect to your consolidated database and load the class on the mlsrv16 command line.

    Replace c:\MLdirect with the location of your source files.

    For Java, run the following command:

    mlsrv16 -c "DSN=mldirect_db" -o serverOut.txt -v+ -dl -zu+ -x tcpip -sl java (-cp c:\MLdirect)

    For .NET, run the following command:

    mlsrv16 -c "DSN=mldirect_db" -o serverOut.txt -v+ -dl -zu+ -x tcpip -sl dnet (-MLAutoLoadPath=c:\MLdirect)

    The MobiLink server messages window appears.

    Below is a description of each MobiLink server option used in this tutorial. The options -o, -v, and -dl provide debugging and troubleshooting information. Using these logging options is appropriate in a development environment. For performance reasons, -v+ and -dl are typically not used in production.

    Option Description


    Precedes the connection string.


    Specifies the message log file serverOut.txt.


    The -v option specifies what information is logged. Using -v+ sets maximum verbose logging.


    Displays all log messages on screen.


    Adds new users automatically.


    Sets the communications protocol and parameters for MobiLink clients.

    -sl java

    Specifies a set of directories to search for class files, and forces the Java VM to load on server startup.

    -sl dnet Specifies the location of .NET assemblies and forces the CLR to load on server startup.


The MobiLink server is started with a connection to your consolidated database and the class you created is loaded.

 See also