This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes remote design Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "remote design" Watch "remote design" New topic
Author

remote design

Laura Alex
Greenhorn

Joined: Mar 27, 2003
Posts: 8
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

Joined: Apr 15, 2003
Posts: 1
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

Joined: Mar 26, 2002
Posts: 442
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: remote design
 
Similar Threads
Database Designs
MVC Implementaion!
Abstract Factory or Factory Method
FBN: Which classes in which package?
Design Opinion