Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

URLyBird 1.2.2 confusion in the spec

 
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
 
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
 
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
 
This tiny ad is suggesting that maybe she should go play in traffic.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic