GoISyncConsole is a Java sample application to demonstrate the use of the DB2 Everyplace Sync Client Java API.
File contents for GoISyncConsole
Prerequisites
Procedure
This requires the isync4j.jar file, which is one of the Sync Client binaries.
javac -classpath isync4j.jar *.java
The path environment must be setup so that the Sync Client binaries can be located.
GoISyncConsole can be used with either the C client or with the Java DB2j client. A property file is used to determine which client to use. Sample properties files for both DB2e and DB2j are provided.
java -classpath isync4j.jar;. GoISyncConsole isyncdb2e.properties
java -classpath c:\cloudscape_5.1\lib\db2j.jar; db2jisync.jar GoISyncConsole isyncdb2j.properties
The application starts with a text menu containing the following options:
The GoISyncConsole application creates another property file called ISync.properties to save your preferences. If you change a property in isyncdb2e.properties or isyncdb2j.properties, you should delete ISync.properties before you rerun GoISyncConsole to ensure that the new changes go into effect.
Related concepts