Network Approaches
Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely. No authentication is required for database access.
SCJP , SCJD. (IBM 142 in progress).
Originally posted by Thirumurugan Mylrajan:
So use command line parm to choose server or client and when the client opens you should be able to choose connecting to a local database or a network server.
Originally posted by Oliver Weikopf:
If the client version allowed you to open a local database, there would be no point in having a standalone version.
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Originally posted by Jared Cope:
I believe that in client mode you must still be able to select a local database, in which case the application will 'switch' to 'alone' mode (even though it was started without the 'alone' command line parameter).
Originally posted by Oliver Weikopf:
"the program must accept an indication that a local database is to be used" sounds like the "alone" parameter to me.
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Originally posted by Oliver Weikopf:
Thirumurugan,
I disagree. There are three moodes.
Server - opens local database and provides it for clients. Started with "server" Client - connects to a server, not to a local database. Started without params Standalone - opens local database. No network connection. Started with "alone" param
So once you start the spplication, the mode defines what you can open. No further decision inside the application. If the client version allowed you to open a local database, there would be no point in having a standalone version.
42
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.
SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
SCJP , SCJD. (IBM 142 in progress).
We begin by testing your absorbancy by exposing you to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|