This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Dear All i have only one db file so if the local and network clients work on the same time they should access the same only file i think this file should be on the server machine that means that the only way to go local is through the same machine that have the server running am I correct?or should i assume that when the client go local , no network connections at all is working and can be tested on a seprate machine. Thanks Walid
Hi Walid, when your app runs in local mode, the db.db file is located somewhere on the local machine. In remote mode, the things are a bit different: For the server, the db.db file is a local file, and the client accesses the db.db file via the server, to which it is connected using RMI (or some other protocol). When you install the whole app on one machine only, it can indeed be the same db.db file, which is once accessed directly (local), and once via remote server. Suppose you have two machines, one to run the client, and the other to run the server. When the client is to run in both modes, you must have db.db files on both machines. Hope this helps.