• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is my design sufficient  RSS feed

Garry Kalra
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!