I have a problem here. Should the user know the name of the remote database service or not? Should they be able to enter it on startup or should it be hardcoded within?
Also, I have this ConnectionFactory that is exported at the Service side to a name
rmi://localhost:1234//ConnectionFactory.
This ConnectionFactory will factory a database connection. Thus the client will ask the remote database factory for a connection. When this request is made, I want the connect factory to be generic in the sense it will work for all other databases also. So in the case of our FBN database the client would request, ConnectionFactory.getRemoteConnection(conenctionName);
This connectionName is not the location of the database on the remote end but a name. The factory contains name/dblocation mapping and will factory the correct database. Whats the best way to do this? Hard coding names is not the best way I would think??? Any suggestions?