| Greg Fenton 2005-04-28, 11:24 am |
| Roy wrote:
>
> I would like to integrate MobiLink synchronization in my Java application.
> As far as I know, Dbmlsync Integration Component is useful for adding
> synchronization in applications, but Java is not supported. Could you give
> me advice on what should be done? I've considered calling a batch file to
> start the MobiLink client for synchronization, but in that case I wouldn't
> be able to get acknowledgement about whether the synchronization is
> completed or not.
>
Reg's suggestion to use JNI and a custom DLL is quite a good one.
Another approach would be to call dbmlsync directly from your Java app
(Runtime.exec() or similar) and check the exit code from that process.
There are other things you can do as well. In your remote database, use
the sp_hook_dbmlsync_* hook mechanism to gather progress information on
the synchronization and your Java application can be monitoring that
progress (from within the database).
Hope this helps,
greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/
|