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 - Server Administration » MobiLink server APIs » Writing synchronization scripts in Java


Java synchronization example

Java synchronization logic works with MobiLink and common Java classes to provide you with flexibility in deploying applications using MobiLink server. The following section introduces you to this extended range of functionality using a simple example.

This section describes a working example of Java synchronization logic. Before you try to use this class or write your own class, use the following checklist to ensure you have all the pieces in place before compiling the class.

  • Plan your functionality using, for example, pseudocode.

  • Create a map of database tables and columns.

  • Configure the consolidated database for Java synchronization by ensuring you have specified in the MobiLink system tables the language type and location of the Java synchronization methods.

    See Setting up Java synchronization logic.

  • Create a list of associated Java classes that are called during the running of your Java class.

  • Store your Java classes in a location that is in the classpath for MobiLink server.

 Java class files