Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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

Is my design sufficient

Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have just started for the developer exam and have come
out with the following design.
1) An interface called DatabaseServices will have all the declarations
for the public methods defined in the Data class.
2) My Data class will extend UnicastRemoteServer and implement the
Remote and DatabaseServices interfaces.
3) For the RMI portion, I will have a class called RemoteServer which
will have a static member of type Data. This server will bind this
static object in the registry.
4) In the Data client, i'll have a static member which will be of
type DatabaseServices which will instantiate a Data class either
locally or using RMI.
5) My GUI will connect to the Data client.
In my interpretation the local mode refers to the one in which
the client part is executed on the server machine itself.
The only things i have a confusion about is that are the following
specifications being covered.
1) "The remote client code that you write must provide all the public
methods of the suncertify.db.Data class. "
I think that the services for the Data class will be provided
by the static member in the Data client of type DatabaseServices.
2) Since the Data class extends UnicastRemoteServer, does it mean
that i am creating sockets when this class is locally instantiated
by the data client.
Pls guide if i am on the right track as i don't have much experience
in programming Java using RMI. Any things i need to look out which i am
Also as i am unfamiliar with design patterns, do i need to follow
any specific design patterns. Any design advice will be highly appreciated.
Gaurav Kalra
    Bookmark Topic Watch Topic
  • New Topic