1 Reply Latest reply on Jun 18, 2004 9:32 AM by snavjot

    Data Transfer Object // WebServices

    Matthias Zint Newbie

      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