• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URLyBird: 2 questions

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Denis Spirin
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic