
Signature
-------------------------------------------
// Sampsa Sohlman //
// My email can be found on my homepage //
// http://sampsa.sohlman.com //
-------------------------------------------
> > I have to write something in java to synchronize certain fields in one
> > data source into another data source.
[quoted text clipped - 12 lines]
>
> - Sampsa
I say datasource rather than database or LDAP repository because I
mean that the source of data could be in any storage mechanism. The
data that needs to be synchronized is from 2 different sources of
data, that hold some data in like: a name, phone number, address,
etc, but each individual datasource may also hold other kinds of data
not pertinent to the other datasource. So I am really synchronizing
certain fields from each datasource with fields from another.
Initially the "synch" would be uni-directional. One being deemed the
official authority of what the data should look like. Of cource over
time that will not be the case, but in this stage of our project, this
is the case.
So, one "datasource" could be Sybase and the other LDAP, or
vice-cersa.
Sampsa Sohlman - 15 Nov 2004 20:59 GMT
> I say datasource rather than database or LDAP repository because I
> mean that the source of data could be in any storage mechanism. The
[quoted text clipped - 11 lines]
> So, one "datasource" could be Sybase and the other LDAP, or
> vice-cersa.
It is possible to extend DataSet functionality to read and write to/from
LDAP.
If you do this way and use samekind of design as in tutorial, then all
data is compared in memory. I have made datatransfers with dataset with
more than 150 000 rows. Good thing with DataSet is that it only writes
changes back to datasource (if the WriteEngine has been designed that way).
To that it is necesary to extend
com.sohlman.dataset.ReadEngine
to create LDAPReadEngine
com.sohlman.WriteEngine
and then extend
com.sohlman.dataset.WriteEngine
to create LDAPWriteEngine
Problem is that these are not ready. Even though rightnow I'm also
working with LDAP :) and my current project might be handy.
- Sampsa

Signature
-------------------------------------------
// Sampsa Sohlman //
// My email can be found on my homepage //
// http://sampsa.sohlman.com //
-------------------------------------------