This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passed SCJD at 149/155

 
Richard Mok
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
First of all, thank you in this website who shared their knowledge and experience. Though this assignment is a bit difficult at the start, but you will find it worth-taking as an excerise. I am so lucky, I only need to wait 3 days for they release my result.
Comment: This report shows the total points that could have been awarded in each section and the actual number of points you were awarded. This is provided to give you per-section feedback on your strengths. The maximum possible # of points is 155; the minimum to pass is 124. General Considerations(maximum = 58): 57 Documentation(maximum = 20): 20 GUI(maximum = 24): 21 Server(maximum = 53): 51
Below are some of my design choice:
1. Modify Data class as it is easier.
2. Using RMI
3. Use LockManager for record locking
4. I am now sure if my Swing components are MVC or not. I make a new class called FlightTableModel which extends AbstractTableModel for the JTable. Use combo box for the criteria. Very simple layout, top left for search panel, top right for flight booking, center for the JTable and bottom for the status panel.
5. Server GUI, which has "Suspend" and "Resume" button (lock(-1) & unlock(-1) ).
6. A status panel at the bottom of server to show the db status, like searching, locking,... using custom made event object and listener.
Hope the above will inspire some bright idea.
Finally, thanks again for all the valuable suggestion and experience in this website.
Richard
 
Manish Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats Richard.
Can u provide me answer to my quries:
1. Did you implement Client Tracking system?
if not, how did you manage to unlock a record if the caller doesn't have the lock for that record?
2. Where did you implement the booking logic client side or server side?
Thanks
with regards,
Manish
 
Richard Mok
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manish,
Actually, I changed the signature for lock and unlock as lock(int recno, UID uid) where uid is an instance of java.rmi.server.UID passed to LockManager by the DataAccessFacade. So, LockManager will know who are going to unlock the record.
Also, I create DataAccessFacade class for bookFlight and searchFlight operation.
Thanks,
Richard
 
Manish Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rihard
Actually I am new to RMI. Can you suggest me some tutorials on the advanced topics of RMI.
Thanks
Manish
 
Manish Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.. and did you modify the lock signature of the Data class or you did this in DataAccessFacade only?
thanks
 
Robin Underwood
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations and good luck to you!
 
Richard Mok
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manish,
I think the best RMI tutorial to start with is the java tutorial
In this tutorial, it shows you all the fundamentals of rmi programming. Also it demonstrates the dynamic loading (using codebase) and RmiSecurityManager which is no need in this assignment.
Another interesting and useful reference is the BINGO game example.
Both Data and RemoteData class implement DataInterface. I actually change the lock signature in DataInferface which forces both Data and RemoteData to alter their lock signature.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great job Richard
 
vital kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats Richards,
Well Done !!!

 
Mike Piotrowski
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Richard,
Congratulations, job well done!
Mike
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats Richard. Well Done.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic