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.
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
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.
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
How do you identify a client ?
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
SCJP 1.4 100%
SCJD 99.5%
SCJP 1.4 100%
SCJD 99.5%
SCJP 1.4 100%
SCJD 99.5%
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
SCJP 1.4 100%
SCJD 99.5%
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Ha! That's the real challenge of the URLyBird assignment! By the way, your assignment is the URLyBird, right?
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
SCJP 1.4 100%
SCJD 99.5%
In order to identify a client, here's what I did: first, my remote server has a method called lock that also takes a long. Here's its signature:
code:
public void lock(final int recNo, final long clientId) throws RecordNotFoundException;
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
Thanks a lot!
Do you know, did he also have this particular statement in the DB interface documentation? (This way I'll truly forget about this issue )
"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"
[ November 18, 2008: Message edited by: Alecsandru Cocarla ]
Consider Paul's rocket mass heater. |