Contents Index Initializing the synchronization parameters Invoking synchronization

UltraLite Static Java User's Guide
  Adding Non Data Access Features to UltraLite Applications
    Adding synchronization to your application

Setting synchronization parameters


The synchronization streams for UltraLite Java applications are objects, and are set by their constructors. The available streams are as follows:

The following line sets the stream to TCP/IP:

synch_opts.setStream( new UlSocketStream() );

For more information, see Synchronization parameters.

Separately-licensable option required 
Use of UlHTTPSStream, UlSecureSocketStream and UlSecureRSASocketStream require Certicom technology, which in turn requires that you obtain the separately-licensable SQL Anywhere Studio security option and is subject to export regulations. For more information on this option, see Welcome to SQL Anywhere Studio.

For information on the individual parameters, see Synchronization stream parameters.

Once you have initialized the synchronization parameters, and set them to the values needed for your application, you can initiate synchronization using the JdbcConnection.synchronize() method.

The method takes a UlSynchOptions object as argument. The set of calls needed to synchronize is as follows:

UlSynchOptions opts = new UlSynchOptions;
opts.setUserName( "50" );
opts.setScriptVersion( "default" );
opts.setStream( new UlSocketStream() );
opts.setStreamParms( "host=123.45.678.90" );
conn.synchronize( opts );

Contents Index Initializing the synchronization parameters Invoking synchronization