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

SQL Anywhere 12.0.1 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using Java synchronization logic


Lesson 5: Running the MobiLink server with -sl java

This lesson assumes you have completed all preceding lessons. See Lesson 1: Compiling the CustdbScripts Java class with MobiLink references.

In this lesson, you run the MobiLink server with the -sl java -cp option to specify a set of directories to search for class files and force the Java VM to load on server startup.

 Start the MobiLink server (mlsrv12) and load Java assemblies
  1. Start the MobiLink server with the -sl java option.

    Run the following command:

    mlsrv12 -c "DSN=SQL Anywhere 12 CustDB" -sl java (-cp c:\mljava)

    A message indicating that the server is ready to handle requests appears. The Java method is executed when the upload_insert event triggers during synchronization.

  2. Proceed to Lesson 6: Testing synchronization.

 See also