• 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

observer & observable

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

In Andrew's book, server window and related configuration options Gui
implement the observer and observable. I wanted to find out if this is
necessary as per the requirements (my assignment is B&S) and it mentions
that
" All configuration should be via a GUI and should be persistent between runs ". It also mentions about using suncertify.properties for persisting
config.

Are most of you using observer? if so, did you choose to do so because of
any must requirements in the assignment? I want to keep it simple just meeting the requirements.

Thanks
Mary
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, Mary.

No, it is not necessary, not at all. I was thinking about implementing an observer to the main application GUI; when the database state changes (I'm using cache), all clients are notified. But it is not really necessary, so what I did is, when the user tries to book a room, all records being displayed are refreshed.
About the persistence between runs, it means that, when the user enters the information relevant to the application initialization, these information must be recorded in a file called suncertify.properties, which must be in the current working directory (System.getProperty("user.dir")). The next time the user starts the application, these information must be retrieved from the suncertify.properties file and fill the input fields automatically.
Hope this helps.
[ May 14, 2008: Message edited by: Roberto Perillo ]
 
Mary John
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much Roberto, for the details.
It was very helpful. So I am going forward with the simple approach.

Mary
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic