Offline/online/synchronization [message #467530] |
Sat, 05 May 2007 02:35  |
Eclipse User |
|
|
|
Hi all,
Are there any defined or practiced patterns for developing an RCP
application that will work offline and online?
Basically some data is stored locally on the client side and at some
point of time is being synchronized or transfered to the server. I
assume that the data on the server side is common for many users and may
be modified on many different systems before being
transfered/synchronized with a central repository - a bit like source
code repository but for objects and with some level of automation during
synchronization.
For the moment, I believe the easiest way to implement this kind of
functionality would be to transfer whole datagraph (tree of objects) to
the server and depending on the timestamp (somehow internally stored)
determine which objects should be updated (adding should not be a
problem). However, this is a really simple case scenario and I can think
of at least couple more that makes things messy and more difficult
(wrong clock setting on client side, explicit overwrite of timestamp in
all objects, etc.) to deal with.
As RCP apps are becoming more popular I am sure someone had to deal with
that kind of problem before.
Any pointers, resources?
Rgds,
/p
|
|
|
|
|
|
Re: Offline/online/synchronization [message #467540 is a reply to message #467536] |
Sun, 06 May 2007 04:26  |
Eclipse User |
|
|
|
Well the hope is gone ;-).
/p
Alex Blewitt wrote:
> Even SyncML is just a description language, which partitions data into subsets and timestamps them. You still have to write the code to generate the SyncML, and keep track of when that data changes.
>
> The problem isn't *protocol* dependent, it's *data* dependent. You have to do something that makes sense for your data, which is why there's no standard.
>
> Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.07437 seconds