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

SQL Anywhere 12.0.0 » MobiLink - Getting Started » MobiLink Tutorials » Tutorial: Using Java or .NET for custom user authentication

 

Lesson 3: Start the MobiLink server

Starting the MobiLink server with the -sl option allows you to specify a set of directories to search for compiled files.

 To start the MobiLink server (mlsrv12)
  • Connect to the MobiLink 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.

 Further reading