aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird: 2 questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird: 2 questions" Watch "URLyBird: 2 questions" New topic
Author

URLyBird: 2 questions

Denis Spirin
Ranch Hand

Joined: Mar 22, 2004
Posts: 72
1. What is local mode for?
From instructions it is not clear, why do CSRs need local mode. As I think, they need an application which interacts with server. Is such situation possible: somebody runs application in local mode on the same computer where server is running? My server keeps copy of database live records in buffer, which allows fast access to data without IO operations when client searches database. It writes to file only when record is booked. If I launch program in local mode on the same mashine (to work with same database file), it updates file, but not data which server holds. Client will see that record has no owner, and may book it.
2. At the moment, I use one configuration GUI for all modes. When user starts application in server mode, the window which allows to specify port, etc is shown (all data are stored in properties file). If program is started in standalone or remote mode, configuration is bypassed if program encounters no problems while connecting to server or reading local database file. If there are problems, the window is shown. The questions is: what do you think about it? I guess CSRs connect to only one server, or work with only one database file. Is there need to allow user to connect to another server or choose another database file? In instructions there is nothing about that.


Regards<br /> <br />Ph.D.<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD 2
Zafer Abu saeed
Ranch Hand

Joined: Mar 28, 2004
Posts: 40
1) why do CSRs need local mode ?
Because Sun needs it.

2) Is such situation possible: somebody runs application in local mode on the same computer where server is running?
I assume No. Because the specs states that "You may assume that at any moment, at most one program is accessing the database file".
as I understand, this is either a stand-alone client or a server.

3)At the moment, I use one configuration GUI for all modes.
I think you shouldn't. they need different informations..

4)Is there need to allow user to connect to another server or choose another database file?
I saw one day a person who passed and implemented this as the following:
If the CSR need to connect to a different server, or different database file, then "SIMPLY" he/she need to restart the application.


Thanks,<br /> Zafer<br /> SCJP, SCWCD
Denis Spirin
Ranch Hand

Joined: Mar 22, 2004
Posts: 72
Thanks for reply

2) Is such situation possible: somebody runs application in local mode on the same computer where server is running?
I assume No. Because the specs states that "You may assume that at any moment, at most one program is accessing the database file".
as I understand, this is either a stand-alone client or a server.

Right, I missed that sentence.
3)At the moment, I use one configuration GUI for all modes.
I think you shouldn't. they need different informations..

I use same GUI, but enable/disable corresponding fields depending on mode.
4)Is there need to allow user to connect to another server or choose another database file?
I saw one day a person who passed and implemented this as the following:
If the CSR need to connect to a different server, or different database file, then "SIMPLY" he/she need to restart the application.

OK Anyway, they say:
Features that deviate from specification will not receive full credit.� You will not receive extra credit points for work beyond the requirements of the specification.

This means we need to stop somewhere...
Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird: 2 questions