Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Network approaches confusing statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Network approaches confusing statement" Watch "Network approaches confusing statement" New topic
Author

Network approaches confusing statement

Roman Yankin
Ranch Hand

Joined: Aug 27, 2008
Posts: 47
I'm working on B&S 2.1.3 and have found the following confusing requirement under "Server > Network Approaches"


In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely.


What do they mean by "must also accept an indication that a local database is to be used"

Do they mean that I should add something like a title-bar text saying "Non-network Mode" when i'm using local db file and "Networking" when client application is connected to server?
Kah Tang
Ranch Hand

Joined: Sep 10, 2007
Posts: 58
As far as I know, the only indication that needs to be handled is the extra parameter you give to the application to indicate standalone, client or server mode.
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Hi,

what this means to me is "somehow you need to ask the user to specify the local database to be used".

This can be done for instance by displaying a window with a field "Local database path" and a browse button beside it.

=> This tells the user that he must specify the local database to use.

I personally also included the current mode in the application title:
B&S - Network ($IP:$port)
B&S - Server ($path, $port)
B&S - Local ($path)

[ September 07, 2008: Message edited by: Alex Belisle Turcot ]
Jethro Borsje
Ranch Hand

Joined: Jul 22, 2008
Posts: 100
Originally posted by Alex Belisle Turcot:
what this means to me is "somehow you need to ask the user to specify the local database to be used".
I agree, if have assumed the same thing.

Originally posted by Alex Belisle Turcot:
I personally also included the current mode in the application title:
B&S - Network ($IP:$port)
B&S - Server ($path, $port)
B&S - Local ($path)
So you have a GUI app for your server also?


SCJP, SCJD
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Originally posted by Jethro Borsje:
So you have a GUI app for your server also?



Yes. My server allows:
- Browsing to select the database;
- Editing the port to be used;
- Stopping/Starting the server.

Regards,
Alex
[ September 09, 2008: Message edited by: Alex Belisle Turcot ]
Roman Yankin
Ranch Hand

Joined: Aug 27, 2008
Posts: 47
Kah, Alex, Jethro
Thanks for the answers!
[ September 11, 2008: Message edited by: Roman Yankin ]
 
Consider Paul's rocket mass heater.
 
subject: Network approaches confusing statement
 
Similar Threads
Help-specify the database
How to process the networking with a local database?
Switch between remote/local db required?
Confusion about requirement
FileChooser