Lesson 3: Starting the MobiLink server

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

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

 Start the MobiLink server (mlsrv12)
  1. Connect to the CustDB sample database and load your Java class or .NET assembly on the mlsrv12 command line.

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

    For Java, run the following command:

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

    For .NET, run the following command:

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

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

  2. Proceed to Lesson 4: Testing the authentication.

 See also