|
Home > Archive > SQL Anywhere Mobile > April 2005 > Similar Component as Dbmlsync Integration Component for Java development?
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 |
Similar Component as Dbmlsync Integration Component for Java development?
|
|
|
| MobiLink 9.0.2.2451
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.
Thanks!
| |
| Reg Domaratzki \(iAnywhere Solutions\) 2005-04-28, 9:24 am |
| There's nothing you can drop into a Java app like the Dbmlsync Integration
Component. You can write your own interface (using C/C++) to most of the
database tools using the database tools interface. See the following
section of the docs :
ASA Programming Guide
The Database Tools Interface
Introduction to the database tools interface
Using the DBTools Interface, you could write a win32 DLL that fires off
dbmlsync. Then, using JNI, and given the fact that you've written the DLL,
you'll likely be able to tailor how the DLL operates and how it interacts
with your Java app through JNI. Please note I'm not a Java programmer and
have never used JNI, so I'm not positive that what I've just said is even
possible, but reading over the JNI overview, I think it is.
--
Reg Domaratzki, Sybase iAnywhere Solutions
Sybase Certified Professional - Sybase ASA Developer Version 8
Please reply only to the newsgroup
iAnywhere Developer Community : http://www.ianywhere.com/developer
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
ASA Patches and EBFs : http://downloads.sybase.com/swx/sdmain.stm
-> Choose SQL Anywhere Studio
-> Set "Platform Preview" and "Time Frame" to ALL
"Roy" <abc@abc.com> wrote in message news:42705d2d$1@foru
ms-1-dub...
> MobiLink 9.0.2.2451
>
> 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.
>
> Thanks!
>
>
| |
| Dave Shiposh 2005-04-28, 8:26 pm |
| Take a look at the iAnywhere Code Exchange:
http://ianywhere.codexchange.sybase.com/
If you browse through the Mobilink Code Samples, you'll see:
"Java Custom Sync Interface" which I believe is a sample of using JNI to a
customer dll.
Hope this helps.
Dave Shiposh
Principal Systems Consultant
iAnywhere Solutions
"Greg Fenton" <greg. fenton_NOSPAM_@ianyw
here.com> wrote in message
news:4270fdd5$1@foru
ms-1-dub...
> Roy wrote:
application.[color=darkred]
give[color=darkred]
to[color=darkred]
wouldn't[color=darkr
ed]
>
> 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/
| |
|
| Thanks to you all! Great suggestions indeed!
Actually I'm considering using sp_hook_dbmlsync_* hook scripts or
Runtime.exec() as actually I'm not familiar with the development of DLL and
the synchronization is not really very complicated.
"Dave Shiposh" <david.shiposh@ianywhere.com_nospam> wrote in message
news:427136f5$1@foru
ms-2-dub...
> Take a look at the iAnywhere Code Exchange:
>
> http://ianywhere.codexchange.sybase.com/
>
> If you browse through the Mobilink Code Samples, you'll see:
>
> "Java Custom Sync Interface" which I believe is a sample of using JNI to a
> customer dll.
>
> Hope this helps.
>
> Dave Shiposh
> Principal Systems Consultant
> iAnywhere Solutions
>
> "Greg Fenton" <greg. fenton_NOSPAM_@ianyw
here.com> wrote in message
> news:4270fdd5$1@foru
ms-1-dub...
> application.
> give
> to
> wouldn't
>
>
|
|
|
|
|