Jaco Bekker

Greenhorn
+ Follow
since May 25, 2006
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 Jaco Bekker

Hi All

Background: I have a DataRemote class which are made available on the RMI registry for clients to refer to. A client uses which returns an int clientId and refers to a Data object created for each client, in DataRemote within a HashMap. So a client my invoke a data related method on dataRemote with its clientId to access the data, eg.



A client disconnects from the server by which frees that client's resources.

My question is how to determine when a client has disconnected prematurely, that is without using removeClient, so that DataRemote can free that clients resources? If this isn't done, it could become a ugly memory leak.

Thanx

Jaco Bekker

SCJP 1.4
Hi Alan

If you're still interested, it might be a good idea to fill the bottom-right space with some kind of a usage-guide. You mentioned that different colours in your table means different things. Showing those colours and their meanings will be a greathelp for first time users (assesors... )
Hi all...

I've implemented the Data class which implements the DBMain interface from the assignment specs. It specifies the following prototype for the create method:

public int create(String [] data) throws DuplicateKeyException;

My problem is that the RandomAccessFile object throws an IOException but that the create method can't pass to the caller (only DuplicateKeyException).

How do i handle the IOException(s) in the Database?

Thanx

Jaco Bekker

SJCP 1.4