Home > Archive > SQL Anywhere Mobile > April 2005 > Re: Similar Component as Dbmlsync Integration Component for Java









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Similar Component as Dbmlsync Integration Component for Java
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/
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com