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 Java or .NET for custom user authentication

 

Lesson 3: Starting the MobiLink server

In this lesson, you run the MobiLink server with the -sl option to specify a set of directories to search for compiled files.

Prerequisites

This lesson assumes you have completed all preceding lessons. See Lesson 1: Creating a Java class for custom authentication (server-side).

This lesson assumes that you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Using Java or .NET for custom user authentication.

 Task
  • Connect to the CustDB sample database and load your Java class or .NET assembly on the mlsrv16 command line.

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

    For Java, run the following command:

    mlsrv16 -c "DSN=SQL Anywhere 16 CustDB" -o serverOut.txt -v+ -sl java(-cp c:\MLauth)

    For .NET, run the following command:

    mlsrv16 -c "DSN=SQL Anywhere 16 CustDB" -o serverOut.txt -v+ -sl dnet(-MLAutoLoadPath=c:\MLauth)

Results

The MobiLinkAuth method is executed when the authenticate_user synchronization event occurs.

 See also