• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

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 ]
    author and jackaroo
    Posts: 12199
    Mac IntelliJ IDE Firefox Browser Oracle C++ Java
    • 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
    Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
      Bookmark Topic Watch Topic
    • New Topic