It's not a secret anymore!
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes About data file in server case! 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 "About data file in server case!" Watch "About data file in server case!" New topic

About data file in server case!

pascal auderset

Joined: Aug 21, 2002
Posts: 15
Hi the assignment states:
"In either case (RMI or serialized objects), the program must allow the user to spezify the location of the database file and it must also accept an indication that a local database is to be used, in which case, the networking must be bypasses entirly."

Some questions:
1.) If I start in local mode then the user can select a local file fomr the file system.
2.) If I start the server then the "starter" of the server selects a file from the local (server) file system. The client can't now select a file for the database.

Are this two use cases ok? Or do i have to implement a selection mode for the client user?

Thx for advice
Steven Hoodless
Ranch Hand

Joined: Mar 23, 2004
Posts: 64

You will find this subject covered multiple times in JavaRanch if you do a search.

Basically in local mode your user picks a file on the local machine.

In server mode your user selects a file on the server (for this project your local machine might actually be the server).

In network mode the client selects a host/port/server combination to connect to the server by RMI.


For testing you could create 2 folders on your PC each containing a copy of the database file. One folder called Remote and one called Local. Your server user selects the Remote file each time he/she connects and your local user selects the Local file. That should give you a better feel for the distinction between the two modes.


I agree. Here's the link:
subject: About data file in server case!
It's not a secret anymore!