• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

remote design

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic