hello kavitha,
Originally posted by Kavitha KG:
If there are 2 copies of the db.db file and local mode of operation is independent of the remote mode then, this means that there is no need to synchronize the two?
You can *safely* assume that.
When in remote mode, let the server run in a separate JVM. Allow clients to connect to it.
Even if the client is in the same machine as the Remote server, use a separate JVM to connect to it.
In case of local mode assume one client talking to a single db.db file.
Remote and local modes are independent.
*Document* such things in your design justification document. They are "perfectly" acceptable to SUN.
I reiterate concentrate on issues like client identification, How to de-couple the GUI from the code that handles database updates, reads etc.
Basically a better design.