Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

before I submit

 
Manuel Arnoldi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before I submit my solution I have a question:

"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."



1.) Means user the user, who starts the RMI - server? This means the RMI - server choose the location of the database.
2.) Or means user the network client? Then the network client choose the location of the database. But there is only one database file. And in a few month this application will be a web application.

In my solution only the RMI - server can choose the location of the database - file and not the network client. But the sentence "indication that a local database is to be used" is confusing me absolutely. The user has the opportunity to give in the console:
java -jar <path_and_filename> [<mode>] (server, alone or left out entirely).
(Hint. In the standalone mode the user has allso the opportunity to choose the location of the database - file.)

Regards

Manuel
[ January 14, 2007: Message edited by: Manuel Arnoldi ]
 
Brian Kelly
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't understand what you're asking...
The user is "the user"...

The way I understand it ( ) is that:

mode = alone - is the indication that a local database is to be used.

In my suncertify.properties file I have 2 db locations.
DBAlone - local db location for "alone" mode.
DBServer - for the db on the server if in network mode.

(though I'm not sure if that's what you're asking )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic