Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: I don't know what it means 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 "B&S: I don Watch "B&S: I don New topic
Author

B&S: I don't know what it means

Steve Taiwan
Ranch Hand

Joined: Jul 01, 2003
Posts: 166
I get B&S assignment. In the assignment, a sentance is
The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run.


I explain it as the follows.
1. when mode flag is "server", start only database server.
2. when mode flag is "alone", start gui client and local connection
3. when mode flag is "", start gui client and network connection.

Am I right?
Please let me know what it means.
Thank you for replying my thread.

<phil>Edited to solve an alignment issue on the whole thread (replaced the CODE block by a QUOTE one)</phil>
[ August 21, 2004: Message edited by: Philippe Maquet ]

Steve Taiwan<br />SCJP 1.2, SCJD 1.4, SCWCD 1.3, SCBCD 1.3, OCP 8i DBA, SCEA
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
Steve,
I explain it as the follows.
1. when mode flag is "server", start only database server.
2. when mode flag is "alone", start gui client and local connection
3. when mode flag is "", start gui client and network connection.

You might be right, you are using two terms, server and network connection, and I don't know what do you mean by them.
My requirement was identical to yours, so let me tell you what I did.
I had two major compnent, the server and server gui, and the client and client gui. Basically, they are the server and the client. The gui is nothing but a graphical representaion of the software.
1. When the mode flag is "server", only the server will run.
2. When the mode flag is "client", only client will run.
3. When the mode flag is "", the client and the server will run.


SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
Let me explain it another way.

You have one archive of classes.

This constitutes THE application.

The application can run in one of 3 modes.

Server mode 'server' executes the server code that makes a remote object, that constitutes the database, available at a specified port. So here server and database code run.

Client mode '' executes the GUI client that connects to the remote object made available by the server mode.

Local mode 'alone' executes the GUI client that connects to the database code directly.

There is likely very little difference between local and client mode, just in the way it gets an object that represents the database.

However in local mode the code in the server package will NOT be used at all, this is very important.

YMMV if you use plain serialised objects over Socket layer.


SCJP 1.4, SCJD
 
 
subject: B&S: I don't know what it means
 
Similar Threads
B&S: Mode flag "alone" question
[NX Contractor] Package and run application
NX:Question about MODE
standalone vs. net client clarification
URLyBird 1.2.2 modes