aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes allow the user to specify the location of the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "allow the user to specify the location of the database" Watch "allow the user to specify the location of the database" New topic
Author

allow the user to specify the location of the database

David George
Greenhorn

Joined: Aug 25, 2005
Posts: 11
sun request : must allow the user to specify the location of the database.

The program has two kinds of models .

alone model --- I use FileChooser to allow the user specify the location of database .

server model --- should i make a GUI for server to allow the user specify the database on server side?

and do i have a wrong comprehension?
Alan Morgan
Ranch Hand

Joined: Apr 18, 2005
Posts: 113
I present the same UI no matter what way the application is run with different fields enabled/disabled depending on the mode.

It seems to be the common consensus on here that you must provide some kind of GUI to allow the setting of the DB location when starting in server mode.
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
i agree with you. i wrote 4 windows, overall:

- a server gui to specify data file and start / stop server
- a filechooser for standalone mode
- a ip-chooser for client mode
- the main gui, of course

hope it helps,
jan
David George
Greenhorn

Joined: Aug 25, 2005
Posts: 11
Thank you very much . It helps a lot .
Conor O'Mahony
Greenhorn

Joined: Aug 08, 2005
Posts: 7
Originally posted by Jan Groth:
i agree with you. i wrote 4 windows, overall:

- a server gui to specify data file and start / stop server
- a filechooser for standalone mode
- a ip-chooser for client mode
- the main gui, of course

hope it helps,
jan


I was gonna just provide a stop button.
My start server was going to be done programmatically when starting in server mode.
Why provide a start button as well ?

I have also seen metion of being able to provide a Server Port.
Any reason for this cause I wasn't going to ?
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
hi conor,

in principle, you are right...

but:

providing start / stop facilities makes debugging a little easier, and it's not a big deal in terms of extra code. just an unbind() method more.

if you take setting the server port for example, it is a bit more tricky. first of all, i don't see any benefits, actually i never had anything running on 1099 but rmi, so i really think this does not have to be configurable by any big technical needs. second - it's another set of problems you might have to deal with - what are valid ports, what is if someone configues it to port 80, ... ?

so, to come to my point - i'm trying to find a balance between required minimum and comfort. that's it...

many greetings,
jan

ps: in my assignment, a "unbook / release" functionality wouldn't be required, and andrew mentioned people passing without this functions. wow, that would be too hard-core for me... :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: allow the user to specify the location of the database
 
Similar Threads
Who specifies database file location in networked mode?
NX: Specifying directory of database via server mode - totally lost
should we open the db.db at Server startup?
NX: Specify location of database
Client Startup and options