berry westover

Greenhorn
+ Follow
since Dec 24, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by berry westover

Does anyone know where you look for the results of your developers project and exam? I submitted my stuff 10 days ago.
I have a factory that returns a DBAccess interface back to the client. I want the client to use this interface to run the methods for either a local or remote database connection. It works fine for a local connection. Now I'm trying to implement the remote connection using RMI.

How do I return a DBAccess interface when I want to establish a remote connection in my fat client?

I have done the following: I have a class called Data.java that implements the DBAccess interface. I have another interface called RemoteDBAccess which lists the same declarations as DBAccess and adds "throws RemoteException" to each of them. This interface also extends Remote.
I have an adapter called RemoteDBAdapter which extends UnicastRemoteObject and implements RemoteDBAccess.

How can transform this RemoteDBAccess interface type into a DBAccess interface type?
Thanks for the reply Peter....

I believe I'm using a fat client. I'm not really sure I understand what this means exactly. My GUI client will be doing alot of the calls to the database directly...is this what u mean by fat client?

I have done the following: I have a class called Data.java that implements the DBAccess interface. I have another interface called RemoteDBAccess which lists the same declarations as DBAccess and adds "throws RemoteException" to each of them. This interface also extends Remote.
I have an adapter called RemoteDBAdapter wich extends UnicastRemoteObject and implements RemoteDBAccess.

I'm totally lost on the second adapter you alluded to. How does the second adapter (DataProxy) readadapt the first one to re-implement DBAccess? I'm not sure what this looks like, could you explain this part to me better...perhaps some pseudo code?
Boy do I need some help....

Need some help with pseudocode here. How does the GUI client get the local or remote database connection? Does it get the connection thru a factory? If that's the case it seems like the factory must return an interface back to the GUI client. That interface must be common to both the local database connection as well as the remote database connection. Since DBAccess can't be modified I don't see how you can do that becuase you need an interface to extend Remote if you plan on using RMI.

Or does the GUI client maintain two different instance variables one for a local database connection and the other for a remote database connection....and it knows which one to reference to get the actual database operation to be performed based upon how it was started or launched.

HELP!!!
I'm doing the urlybird project for the developer exam. I am told to use a DBAccess interface (declares the database methods I needs to implement) and that I can't change it. I have a class that implements this interface called Data.

I want to use RMI in my solution. To use RMI, I need an inerface that extends Remote. How can I use the DBAccess interface to do this if I can't change it?

Help???