UltraLite User's Guide
Developing UltraLite Java Applications
This section describes how to initiate synchronization from an UltraLite Java application.
The synchronization logic that keeps UltraLite applications up to date with the consolidated database is not held in the application itself. Synchronization scripts stored in the consolidated database, together with the MobiLink synchronization server and the UltraLite runtime library, control how changes are processed when they are uploaded and determines which changes are to be downloaded.
Call the JdbcConnection.synchronize() method to initiate synchronization in an UltraLite application. The synchronization process can only work if the device running the UltraLite application is able to communicate with the synchronization server. For some platforms, this means that the device needs to be physically connected by placing it in its cradle or by attaching it to a server computer using a cable. You need to add error handling code to your application in case the synchronization cannot be carried out.
UltraLite Java applications synchronize in a very similar fashion to other UltraLite applications. For general information about synchronization, see Adding synchronization to your application.
Initializing the synchronization options
Initiating synchronization
Using transport-layer security from UltraLite Java applications