• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

remote design

 
Laura Alex
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been working on the remote side of my FBN application. I've decided to use RMI. I've come up with the following classes and interfaces:
class Data
class LocalDataAccess implements DataClient
class RemoteDataAccessImpl extends UnicastRemoteObject implements RemoteDataAccess
class FBNServer
interface RemoteDataAccess extends Remote, DataClient
interface DataClient (contains most of the metods from Data)
I'm not sure that the name LocalDataAccess is good for that class since that class is
essentially used by the remote access as well. I actually think it is an Adapter, but I'm not sure how the Adapter pattern works.
My idea is that regardless of what connection(local or network) the user has chosen to run the application in, my Model will work with a DataClient object to retrieve/pass data to and from the database.
Please, give me some feedback on my choice of classes. Have I made it more complicated than necessary or am I on the right track?
If anyone knows a good source on-line for Adapter patterns, feel free to drop it.
I appreciate all feedback
/Laura
 
Jigar Pandya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Laura,
Here is a link for adapter pattern implementation.
http://www.javaworld.com/javaworld/jw-05-1999/jw-05-networked.html
http://128.42.6.89/JavaResources/DesignPatterns/adapter.htm
Thanks
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jigar Pandya:
Hi Laura,
Here is a link for adapter pattern implementation.
http://www.javaworld.com/javaworld/jw-05-1999/jw-05-networked.html
http://128.42.6.89/JavaResources/DesignPatterns/adapter.htm
Thanks


those links helped me alot as well, thank you very much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic