File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Location of the LocalDataAccess and RemoteDataAccess classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Location of the LocalDataAccess and RemoteDataAccess classes" Watch "Location of the LocalDataAccess and RemoteDataAccess classes" New topic
Author

Location of the LocalDataAccess and RemoteDataAccess classes

Amit Kr Kumar
Ranch Hand

Joined: Feb 08, 2002
Posts: 100
Hi Ranchers
In which package should the LocalDataAccess and RemoteDataAccess classes should reside. I think FBNLocalDataAccess should remain in client package while FBNRemoteDataAccess should be in server package
Pls comment
Amit
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

This is an interesting question. In mine both of these where in the db package. But after much thought I think it should be otherwise. So maybe the Local should be in client and the Remote in the server package.
What does everyone else think?
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I'm curious to see what everyone thinks about this. Assuming the DataAccess item here is the interface with all the public methods of Data, I'd say put its derivatives in db. My server package (thusfar) is just the Factory and LockManager.
Eduard Jodas
Ranch Hand

Joined: May 14, 2002
Posts: 80
I have:
- db:
Sun's classes + LockManager + other utility classes
- db.net:
My database server classes -> ConnectionFactory + Connection + launcher + other utils
- db.driver:
My database client classes -> DataAccess + DataAccessLocal + DataAccessRemote + utils
I like to keep the number of classes per package short
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

I thought about this again last night, and I am back to them being in the db package. They are about db.
Mark
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Been noodling about this as well. Even the remote flavor of Data interface has little to do with the act of serving up something.
Do you think that the connection factory is the only resident of the server package?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Yes ConnectionFactory, and ConnectionFactoryEngine, the actual object that is registered in the registry. Oh and ServerGUI, if you have a GUI for the server. would be in the server package.
Mark
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
So, the implementations of Remote would be ConnectionFactory and RemoteDataAccess; and the extensions of UnicastRemoteObject would be ConnectionFactoryEngine and RemoteDataAccessImpl?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Location of the LocalDataAccess and RemoteDataAccess classes