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

URLyBird 1.2.2 confusion in the spec

 
Suba Raj
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
This is my first post in this forum. Im doing the URLyBird assignment and have some confusion in interpreting the spec. I request your help in this regard.

The spec goes like...
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,<b> and it must also accept an indication that a local database is to be used,</b> in which case, the networking must be bypassed entirely. No authentication is required for database access


The statement in bold is what bothering me. Does it mean that a remote database file can be used as well. Till now, my understanding was that, when the application is started in the "server" mode, the RMI server starts, when no mode is specified, the remote client is started and in the "alone" mode the local client and the db file are used. But now, when I start the server(the RMI server) I have given a browse to locate the db file on the same server machine. My question is should I allow for a remote database file also?

Please help!!
Thanx in advance,
Suba
 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Suba,

The requirement is about the client program. The client should be able to connect with a (remote) server or use a local database file.

The server only needs to access local database files.

Frans.
 
Suba Raj
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankx Frans,
Im clear now. And I will also mention it in the documentation.
I also thought it could be that way, but since it was accompanied by the word "must", I was worried about it.

Thanx once again,
Suba
 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
In relation to having to look for the database file on the local machine! I am assuming you would have one of those 'JFileOpen' things flying around in the code! One would explicitly have to locate the file on the local machine! Thanks in anticipation for a response.
 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saheed,

In my server code I had indeed a JFileChooser to select the database file that the server would "serve" to the clients.
(I also had one for the standalone client).

Frans.
 
Suba Raj
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saheed,
Yes you are right. I have a JFileChooser, which helps the user to select a database file from the local file system.

Good luck,
Suba
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic