• 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

Passed SCJD at 149/155

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
.. and did you modify the lock signature of the Data class or you did this in DataAccessFacade only?
thanks
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations and good luck to you!
 
Richard Mok
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great job Richard
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congrats Richards,
Well Done !!!

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Richard,
Congratulations, job well done!
Mike
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congrats Richard. Well Done.
Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic