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 before I submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "before I submit" Watch "before I submit" New topic
Author

before I submit

Manuel Arnoldi
Greenhorn

Joined: Jan 08, 2007
Posts: 5
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

Joined: Jan 04, 2007
Posts: 54
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 )


SCJA, SCJP (1.4), SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: before I submit
 
Similar Threads
RMI/Standalong
regarding mode
NX: Questions about properties and security manager.
Network Approaches
How many modes are there for the program?