• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URLyBird 1.2.2 confusion in the spec

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic