Jack Zhang

Greenhorn
+ Follow
since Sep 06, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jack Zhang

Peter,
Is my understanding of the relationships between the Server object, Connection object and the Data object correct?
1, the Server is a connection factory, with the Data object as it's member variable (to keep it unique and pass its reference to all client connections)
2, the Connection object serves a single client, while accessing the shared Data object.
Thanks!
Jack
Jack
A single datasource does not necessarily mean only one table. If you allow multiple objects to open the same file, how could you provide record locking?
-- Jack
Thanks for the response! I still have the following question:
When a remote client lookup() a remote DataServer through RMI, (1) does it use the existing object (referenced by the jndi tree),
or (2) is a new object created ?
In case (1): the DataServer.finallize() won't be called when the client disappears, because the tree (and other clients) still have references to the object.
In case (2): how can multiple DataServer objects share a single DataObject?

Any comments on this will be appreciated!
To my understanding, all clients are sharing the same remote Data objet. How can you use unreferenced() to unlock a locked record when the locking client disappears, while other clients (and the jndi tree) are still holding references to the remote Data object?