Hi, I'm new to the forum so apologies if this question has already been asked/answered. The specification requires that the program should be able to be run in non-networked mode as well as networked mode - so that the database and GUI run in the same VM. Should other clients running in other VM's be able to connect to the database while its running in the same VM as a client GUI? My thoughts are that if run in 'non-networked' mode only one client can connect - the client in the same VM. Is this correct? Cheers, Steve
When in local mode the data only resides on the clients machine and there is no RMI, therefore other clients wouldn't be able to connect to that version of the db.db file. You will include the Data classes and db.db file in both the local version and the network version. Think of the program as two versions. one stand-alone(local) the other as a network(remote). In stand-alone(local) there is no server. As far as asking questions, I am pretty sure most questions have been asked before, so don't worry about posting anything that has been asked before. I asked all the same questions too. One thing that is really cool about this forum, is that you can do a search on the forum and find all the responses to similar questions and therefore get a good cross-section of answers. Mark
Just been reading the above thread, and just wanted to confirm.. If the user chooses to operate in local mode then the user could, potentially, be viewing data from the same db.db file as clients operating in network mode. It is not necessary to ensure concurrency in this situation??
Check your instructions carefully. For my assignment, it says that in non-networked mode the network server code must not be used at all. So there's no way that my DB instance can be accessed by any networked clients at the same time. And elsewhere I'm told I can assume no other programs will be accessing the DB file at the same time. So there's no way another client can access the same DB file. Your assignment may be different, however.
"For my assignment, it says that in non-networked mode the network server code must not be used at all. " Yes in the new assignments they are making sure they have this statement, since it was a place for confusion to many. I know half of my posts are "In Local Mode there is no server" I even post that in other forums. Mark