scwcd, scjd, scjp<br /><a href="http://natejohnson.us" target="_blank" rel="nofollow">http://natejohnson.us</a><br /><a href="http://rice.kuali.org" target="_blank" rel="nofollow">http://rice.kuali.org</a>
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Mag
Originally posted by Mag Hoehme:
There is no space for any client ID ---
scwcd, scjd, scjp<br /><a href="http://natejohnson.us" target="_blank" rel="nofollow">http://natejohnson.us</a><br /><a href="http://rice.kuali.org" target="_blank" rel="nofollow">http://rice.kuali.org</a>
Mag
Originally posted by Mag Hoehme:
I remember having read in this forum to use the current thread as client ID.
scwcd, scjd, scjp<br /><a href="http://natejohnson.us" target="_blank" rel="nofollow">http://natejohnson.us</a><br /><a href="http://rice.kuali.org" target="_blank" rel="nofollow">http://rice.kuali.org</a>
Originally posted by Nate Johnson:
... now if you are using sockets, I can not really say if the same applies.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Mag
Originally posted by Mag Hoehme:
Hi,
Thank you, Nate, for the remark on RMI and its thread reuse.
I've pondered the problem of the client ID. If RMI does not guarantee that the same thread is used (as the spec says), a workaround could be to give the current thread a name before calling lock or unlock and using this as a client id.
Anyway, I rather think that the client ID is not really required. It is a beautiful idea, but my requirements do not mention anything indicating that this safeguard is required.
After all, the locking mechanism is a simple precaution against corrupting data, and as such the record number alone should do the job.
I also feel that locking and unlocking should be restricted to take place within the server only.
Any comments are welcome!
Mag
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Originally posted by Mag Hoehme:
Anyway, I rather think that the client ID is not really required. It is a beautiful idea, but my requirements do not mention anything indicating that this safeguard is required.
scwcd, scjd, scjp<br /><a href="http://natejohnson.us" target="_blank" rel="nofollow">http://natejohnson.us</a><br /><a href="http://rice.kuali.org" target="_blank" rel="nofollow">http://rice.kuali.org</a>
Originally posted by Nate Johnson:
I am pretty sure that is in the specs and a client id makes the unlock check really easy.
Mag
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|