aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX CONTRACTORS: A bit confused about RMI, please check design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX CONTRACTORS: A bit confused about RMI, please check design" Watch "NX CONTRACTORS: A bit confused about RMI, please check design" New topic
Author

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

Noah Le
Greenhorn

Joined: Aug 12, 2003
Posts: 4
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

    Joined: Mar 28, 2003
    Posts: 11480
        
      94

    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


    The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: NX CONTRACTORS: A bit confused about RMI, please check design