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?
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.
Thanks your the explanation. The fog is beginning to lift! A dumb question, What is a connection object? Is it the RMI implementation object?
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton