• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX CONTRACTORS: A bit confused about RMI, please check design

 
Noah Le
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this look ok?
In Suncertify.db:
  • 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.

  • In Suncertify.remote:
  • interface DataRemote extends DataClient, Remote - the remote object
  • class DataRemoteImpl extends UnicastRemoteObject, 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 ]
     
    Andrew Monkhouse
    author and jackaroo
    Marshal Commander
    Pie
    Posts: 11887
    203
    C++ Firefox Browser IntelliJ IDE Java Mac Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Noah
    Welcome to JavaRanch.
    So far your implemenation looks very similar to others discussed here. So I think you are on the right path.
    Regards, Andrew
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic