Contents Index Running Java synchronization logic Class instances

MobiLink Synchronization User's Guide
  Writing Synchronization Scripts in Java

Writing Java synchronization logic


Writing Java synchronization logic is no different in complexity from writing any other Java code. What is required from you is knowledge of MobiLink events, some knowledge of Java, and knowledge of the MobiLink Java API. The following sections help you write useful synchronization logic.

In this release, the row data for the upload and download streams are not passed to the Java synchronization logic. Java synchronization logic can be used to maintain state information, and implement logic around the upload and download events. For example, a begin_synchronization script written in Java could store the MobiLink user ID in a variable. Scripts called later in the synchronization process can access this variable.

Using Java reduces dependence on the consolidated database. Behavior is affected less by upgrading the consolidated database to a new version or switching to a different database-management system.

For a complete description of the API, see MobiLink Java API Reference.


Class instances
Transactions
SQL-Java data types
Constructors
Methods
Debugging Java classes
Handling MobiLink server errors in Java
User-defined start classes

Contents Index Running Java synchronization logic Class instances