• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
     
    author and jackaroo
    Posts: 12200
    280
    Mac IntelliJ IDE Firefox Browser Oracle C++ Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic