• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About data file in server case!

 
pascal auderset
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic