how to Multi clients should notify the updates for data ?

  • Thread starter Thread starter chandu
  • Start date Start date
C

chandu

hello,

in a multi client environment .
at the same time two clients open the Application.
one client updated some data in the database.
at that time another client wants to update some data.. the other client
must notify that in the data base data was updated by first client..

how to do it?

thanks
 
It depends on your DB, because some databases have mechanism to notify other
about changes (via internal services or via triggers).
Besides it could be set via levels of transaction isolations
(http://en.wikipedia.org/wiki/Transaction_isolation_level)

If these cases unacceptable, you need realize notifier behavior (observer
pattern) in you own data layer which will be used my multiple clients

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top