Lesson 3: Run the MobiLink server with -sl java

Running the MobiLink server with the -sl java -cp option specifies a set of directories to search for class files, and forces the Java Virtual Machine to load on server startup.

To start the MobiLink server (mlsrv11) and load Java assemblies

  • At a command prompt, run the following command:

    mlsrv11 -c "dsn=SQL Anywhere 11 CustDB" -sl java (-cp c:\mljava)

    A message appears that the server is started. Now the Java method is executed when the ULCustomer table upload_insert event triggers during synchronization.

Further reading

For more information, see -sl java option.