Neil Renaud<br /> <br />SCJP 1.4<br />SCWCD 1.4<br />SCJD - In progress since March 05
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Originally posted by Neil Renaud:
Hey all,
I've just started my URLyBird project. I have read the posts on here about database location and these seem to suggest there are 3 modes of operating and needing the database location
1) Standalond
2) Client
3) Server
Now my thought are this...the server doesn't need to know where the database is until a client connects to it. Therefore when the server is started for the first ever time (before it has been able to put an entry in the properties file) it just sits there without a database. Then when the first client comes along you tell it the server IP and it connects and the server sends a message back saying "I don't have a database could you please set one" at which point the client pops up a gui gets a location and then tells the server that writes this into its property file. This then avoids the server having to have a gui/command line option/user typing in the location of the database/etc.
Comments?
SCJP 1.4<br />SCJD 1.4
Neil Renaud<br /> <br />SCJP 1.4<br />SCWCD 1.4<br />SCJD - In progress since March 05
Originally posted by Neil Renaud:
All valid points.
I guess it is just the enviroment I work in but I always see servers as command line only applications e.g. no GUI as such to enter a database location it would have to be typed at a command prompt but I really dislike that idea.
I'm guessing people have done a server GUI and passed then. In which case I'll do that.
Neil
SCJP 1.4<br />SCJD 1.4
Neil Renaud<br /> <br />SCJP 1.4<br />SCWCD 1.4<br />SCJD - In progress since March 05
Consider Paul's rocket mass heater. |