File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Starting SCJD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Starting SCJD" Watch "Starting SCJD" New topic

Starting SCJD

Alex Montana

Joined: Aug 17, 2009
Posts: 2
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

Joined: Jan 23, 2009
Posts: 22
Try the Monkhouse book for a head start on the options.

SCJD6 (390/400), SCWCD5 (79%) & SCJP6 (80%)
Roel De Nijs

Joined: Jul 19, 2004
Posts: 8357

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,

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
I agree. Here's the link:
subject: Starting SCJD
It's not a secret anymore!