This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "About data file in server case!" Watch "About data file in server case!" New topic
Author

About data file in server case!

pascal auderset
Greenhorn

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
Pascal
Steven Hoodless
Ranch Hand

Joined: Mar 23, 2004
Posts: 64
Pascal,

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.

Steven


SCJP, SCJD, SCWCD.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About data file in server case!
 
Similar Threads
Locking
regarding mode
Design Opinion
Java Certified Developer 1 Question
How many modes are there for the program?