This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passed OCMJD

 
alan dunne
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just received my results for the project assignment and I received a score of 379. Thanks so much to all who helped me out, in particular Roel De Nijs and Himai Minh.

My major design choices were as follows:

Extended the DBAccess interface with my own custom interface
Used Singleton Data class
Used a cache populated at startup and written to at shutdown
Used two helper classes "behind" the Data class - one to access the db file and another to carry out the client operations after the cache is populated
The Data class used the facade pattern - the work was done by one of these helper classes. The Singleton nature of the class meant I had to pass the instance back to the helper in order to lock on (seemed ok!).
Used the MVC pattern - but did not update all clients following a booking. It is left to clients to refresh out-of-date data.
Implemented a thin client
Used RMI - because I felt it was easier
Implemented the 48-hour rule using a checkbox (to filter out currently unavailable rooms) but also an error message to inform users should an attempt be made to book an unavailable room (checkbox not ticked)
Used System.nanoTime() as the cookie generator - it was fine as a simple solution
Didn't use any logging - I would again if I had more time

Thanks again for the help!
 
Roberto Perillo
Bartender
Posts: 2273
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats!
 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats champion with a great score!

Time to relax and have a few
 
Amos Sekati
Greenhorn
Posts: 5
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats Champ
 
Amos Sekati
Greenhorn
Posts: 5
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats champ
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!