File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: Mode flag 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: Mode flag "alone" question" Watch "B&S: Mode flag "alone" question" New topic
Author

B&S: Mode flag "alone" question

Roman Yankin
Ranch Hand

Joined: Aug 27, 2008
Posts: 47
Okey, this should be really straightforward.

When "alone" flag is specified does this mean that the application should start in non-networked mode when all operations are performed on file-system level

OR

it means that the client GUI application starts that performs all operations over the network using RMI or sockets?




Why do I feel confused about this really simple question? Because under "Overall Architecture > Non-Networked Mode" of the assignment instructions I read
The operating mode is selected using the single command line argument that is permitted.
(note this is written NON-networked paragraph) and under "Deliverables > Target Platform and Execution" paragraph I read
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.

This makes me think that standalone equals non-networked, so under NON-network section we are indirectly advised to specify config parameter and under "Target Platform and Execution" we are not advised to specify any parameter.

Who knows the truth please answer what is the right thing to do?
[ September 21, 2008: Message edited by: Roman Yankin ]
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Originally posted by Roman Yankin:
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 got confused myself while reading your question.. It is quite simple:

Your application can run in 3 mode:
  • server;
  • network client;
  • standalone client.


  • To launch the application as a "server", you need to specify the keyword "server".
    To launch the application as a "standalone client", need to specify keyword "alone".
    To launch the application as a "network client", no keyword. It also requires that another instance of your application is running as "server".

    The "network client" will communicate with the "server" to access the database.
    The "standalone client" will not use any network code you wrote dealing with client/server stuff. The "standalone client" will directly access the database (no network or fake network/loopback, no RMI, no server side threads...).

    Regards,
    Alex
    [ September 24, 2008: Message edited by: Alex Belisle Turcot ]
    Roman Yankin
    Ranch Hand

    Joined: Aug 27, 2008
    Posts: 47
    Alex, thanks a lot!
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: B&S: Mode flag "alone" question