aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird 1.2.2 confusion in the spec 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 "URLyBird 1.2.2 confusion in the spec" Watch "URLyBird 1.2.2 confusion in the spec" New topic
Author

URLyBird 1.2.2 confusion in the spec

Suba Raj
Greenhorn

Joined: Jul 20, 2005
Posts: 13
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

Joined: Dec 29, 2004
Posts: 357
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.


SCJP 1.4, SCJD
Suba Raj
Greenhorn

Joined: Jul 20, 2005
Posts: 13
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

Joined: Jun 23, 2004
Posts: 267
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.


Saheed Adepoju<br />SCJP 1.4<br />SCJD (B&S..In progress)
Frans Janssen
Ranch Hand

Joined: Dec 29, 2004
Posts: 357
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

Joined: Jul 20, 2005
Posts: 13
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
 
 
subject: URLyBird 1.2.2 confusion in the spec