aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Clarification of operating mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Clarification of operating mode" Watch "Clarification of operating mode" New topic
Author

Clarification of operating mode

Steve Granton
Ranch Hand

Joined: Jan 13, 2002
Posts: 200
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
HenkGijsbert
Greenhorn

Joined: Jan 07, 2002
Posts: 28
Hi Steve,
I thought about the same question and decided that, since it is not explicitly required, not to register an rmi server when I am running in 'single VM-mode.
regards,
Henk
Steve Granton
Ranch Hand

Joined: Jan 13, 2002
Posts: 200
Thanks,
I think I'll go along with that.
Cheers,
Steve
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
James Hook
Greenhorn

Joined: Jan 20, 2003
Posts: 18
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??
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
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.


"I'm not back." - Bill Harding, Twister
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

"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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Clarification of operating mode