A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Developer Certification (SCJD/OCMJD)
NX CONTRACTORS: A bit confused about RMI, please check design
Joined: Aug 12, 2003
Aug 19, 2003 11:36:00
Does this look ok?
interface DB - provided by Sun
class Data implements DB - provided by Sun
interface DataClient - will have all the methods of DB, except lock/unlock
class DataAdapter implements DataClient - threadsafe wrapper class for Data. holds an internal reference to a Data object, wraps modification calls between lock and unlock calls.
interface DataRemote extends DataClient, Remote - the remote object
class DataRemoteImpl extends
, implements DataRemote
class DataConnector - client-side class that determines whether to return a new DataAdapter instance (for local mode), or a reference to the existing remote object (for network mode)
class DataRemoteObjReg - creates and registers the remote object on the server.
Does this look ok? I've never done RMI before, or anything network-related for that matter. It's kinda confusing for me.
[ August 19, 2003: Message edited by: Noah Le ]
author and jackaroo
Joined: Mar 28, 2003
Aug 20, 2003 02:46:00
Welcome to JavaRanch.
So far your implemenation looks very similar to others discussed here. So I think you are on the right path.
The Sun Certified Java Developer Exam with J2SE 5:
paper version from Amazon
PDF from Apress
, Online reference:
I agree. Here's the link:
subject: NX CONTRACTORS: A bit confused about RMI, please check design
FBN RMI Design Question
Stand alone criteria [B&S]
Extending Data Class
FBN : Exception in High level Data Interface
NX: DBAccess and RemoteException
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014