aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Question about Requirements (Networking part) 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 "Question about Requirements (Networking part)" Watch "Question about Requirements (Networking part)" New topic
Author

Question about Requirements (Networking part)

Jay Ashar
Ranch Hand

Joined: Oct 13, 2002
Posts: 208
Friends, I was just going through my assignment to make sure I have covered everything and my assignment says the follwoing line
"the program must allow the user to specify the location of the database, and it must also accept indication that local database is to be used..."

I am confused as to what does this mean? In my design when user tries to enter local mode it goes directly to the GUI that shows the list of records and if user tries to enter network mode it takes you to the screen which allows user to enter host name and port number, with button connect (which also starts the server). Is this enough for requirement Sun has given above, because I assumed that
giving them text boxes for hostname and port number = specifying the location of database.

Am I right?


SCJP 1.4<br />SCWCD 1.3
Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327
I chose to allow the user to specifiy an absolute local file path for the database when the application was started in local mode. You could create a local database location dialog box that is similar to your remote database location box.

I have heard that a lot of other developer's had used this method. I think it is safer and being on the safe side will help you relax a bit more while waiting for your score (like I am currently).
Jay Ashar
Ranch Hand

Joined: Oct 13, 2002
Posts: 208
Thanks a lot. I will try to do the same so I can relax too from next week while waiting for my scores :-)
Although my instruction says allow user to specify database location in networking mode only, but I will still implement the feature you mentioned.
Robert Konigsberg
Ranch Hand

Joined: Jun 23, 2004
Posts: 172
I implemented it such a way that there were no default values. No .property files = no connection. But that didn't stop the GUI from running. From the GUI one could access a preferences screen which would allow you to reconfigure the IP/Port or database filename. You would then need to restart the GUI or Network server.

Just my $0.02. Is that an off-base idea?

RK


SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
I went a little too far with my design. I allowed the user to specify a local database file, a database on the network, or to connect to a server. Also, the server admin is able to specify a database location, which the server uses to serve its clients.
once the application is running, the client can switch between local and server mode at any time.
The only restriction is that a client can view and query a single database at a time. I wanted to implement the ability to look at two different database, but what I did was already too much.


SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about Requirements (Networking part)
 
Similar Threads
NX: Question about database location.
Allow the user to change data file when running app in client mode?
Miscellaneous Questions
Is it okay to use images found on the web?
NX: (HTL) FileChannel & Threads