Introduction to Java Synchronization tutorial

This tutorial guides you through the basic steps for using Java synchronization logic. Using the CustDB sample as a SQL Anywhere consolidated database, you specify simple class methods for MobiLink table-level events. The process also involves running the MobiLink server (mlsrv11) with an option to set the path of compiled Java classes.

Required software
  • SQL Anywhere 11
  • Java Software Development Kit
Competencies and experience

You require:

  • familiarity with Java
  • basic knowledge of MobiLink event scripts
Goals

You gain competence and familiarity with:

  • using simple Java class methods for MobiLink table-level events
Key concepts

This section uses the following steps to implement basic Java-based synchronization using the MobiLink CustDB sample database:

  • compiling a source file with MobiLink server API references
  • specifying class methods for particular table-level events
  • running the MobiLink server (mlsrv11) with the -sl java option
  • testing synchronization with a sample Windows client application
Suggested background reading

For more information about synchronization scripts, see Introduction to synchronization scripts.