SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
But if I don't have to look-up a value (a cookie) based on the record number, since I only have record numbers then what value does the Map structure add?
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Vlad, are you saying that even if I decide to implement the serverside locking and even though I don't have cookies to validate the authenticity of a client thread, I am better off using a hashmap since it facilitates direct access based on record numbers? That I can leave the value out all-together (keep nulls)? Now going a bit further, then as others are suggesting on this forum, use a WeakHashMap since it will release locks in the event of a thread failuare and be garbage collected.
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Thanks your the explanation. The fog is beginning to lift! A dumb question, What is a connection object? Is it the RMI implementation object?
Don't get me started about those stupid light bulbs. |