Hi, As I know, our implementation can accept database name as commandline input. If I let the Sun's accessor enter the database name, which of the following the accessor will enter:' a) Just name - db.db b) Relative path name - ../db/db.db c) Absolute path name - C:\project name\src\suncertify\db\db.db Please let me what the accessor will do. Thanks, John Chien
The assessor will do what you instruct him to do in your readme.txt. My recommendation is not to pass anything on the command line: java -jar server.jar java -jar client.jar Simple as that. Eugene.
Joined: Feb 06, 2003
Eugene: Thank you for the response. I was writing the code and running test using JBuilder. I am going to build jar file now. I have 4 packages - a) suncertify.client package contains classes to lookup ConnectionFactory and to get DataAccess Object b) suncertify.server package contains classes to rebind the ConnectionFactory and RemoteDataAccess, ConnectionFactory definition and their implementations. c) suncertify.db package Contains classes for database access and LockManager. d) suncertify.ui package Contains all the HUI classes. The rmic were used to generate ConnectionFactoryImpl_Stub.class and RemoteDataAccessImpl_Stub.class Both classes are in server package. Questions: 1) Which classes should be used to build client.jar and server.jar client.jar - all classes in suncertify.client, suncertify.ui, suncertify.db and two _Stub.classes server.jat - all classes in suncertify.server, suncertify.db including the two _Stub.class Is this a correct jar file building scheme ? 2) When I run the server and client using Jar file, I should allow user input for host DNS and port. Certainly, the server process can find its DNS and running in a predefined port. In a condition like this, I can run the server as you suggested. How about client ? I should allow user to enter server DNS and port. How can I run the client without taking any user input parameters ?