Hi there,
maybe someone can give me an opinion on this:
I'm using WebServices to transfer data in form of a "Data Transfer Object" between a .NET client and JBoss.
How can I make sure that the data doesn't get stale, when multiple clients access the same data at the same time?
I've read some stuff about the "versioning" mechanism, where a version number is saved along with the dto, that is being compared against the version-number stored on the server when a client tries to update data. If the comparison fails (that means another client has already done an update) the update will not take place.
Is there any better solution to this problem under these circumstances (.Net / J2EE / WebServices) ? Any best practices ??
thanks in advance
matt
You may access your DTO via proxy. It will be the proxy's responsibility to maintain the sanctity of your DTO.
Proxy can exploit monotonically increasing version numbers or timestamps.
HTH
Navjot Singh