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 Modes of operation 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 "Modes of operation" Watch "Modes of operation" New topic
Author

Modes of operation

Glen Iris
Ranch Hand

Joined: Jul 13, 2011
Posts: 164

I juat downloaded my assignment and it reads:
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 means:

If the argument 'server' is passed from the command line, the app will run in server mode.
If the argument 'alone' is passed from the command line, the app will run in standalone mode.

What should happen if no argument is passed? Is that saying that it should run in server mode if no argument is passed?




Thanks


OCPJP 6, OCMJD
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5608
    
  15

or left out entirely, in which case the network client and gui must run

So, no argument = network client should run


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Glen Iris
Ranch Hand

Joined: Jul 13, 2011
Posts: 164

Roel De Nijs wrote:
or left out entirely, in which case the network client and gui must run

So, no argument = network client should run

Hi Roel,

So it should operate in Server mode?
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5608
    
  15

No!

You have 3 different modes:
  • standalone (gui + database)
  • network server (database)
  • network client (gui)
  • Glen Iris
    Ranch Hand

    Joined: Jul 13, 2011
    Posts: 164

    Ahhh,

    So the three different things are:

    standalone client - client connects to local db. gui is used.
    network connected client - client connects to the remote server. gui is used.
    server - remote(or virtually remote) server starts up. Database exists here too. This mode of operation only starts the server and no GUI is used.

    Am I catching on now or am I still a million miles off?
    Roel De Nijs
    Bartender

    Joined: Jul 19, 2004
    Posts: 5608
        
      15

    You're spot-on!
    Glen Iris
    Ranch Hand

    Joined: Jul 13, 2011
    Posts: 164

    Roel De Nijs wrote:You're spot-on!

    Thank you kind sir!
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Modes of operation