Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting SCJD

 
Alex Montana
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I'm starting SCJD and I've got some questions after reading the specification.

My database class use cookies for locking records and the lock() method states that "if the specified record is already locked by a different client, the current thread gives up the CPU and consumes no CPU cycles until the record is unlocked". Does this requirement makes using sockets a better choice? I have never used rmi, but to my understanding it doesn't allow much control over threads, is that right?



 
Dick Smith
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the Monkhouse book for a head start on the options.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alex,

Welcome to the JavaRanch!

If you have an interface with a lockCookie, you don't have to care about controlling and identifying threads, because the lockCookie will be used for identification. And if you would choose a sockets solution, you would be one of the very few people following that approach. RMI is clearly the favourite choice.

And like Dick suggested: Andrew's book is an excellent choice to clear this certification. This forum also contains all answers to almost every question/doubt you'll encounter.

Kind regards,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic