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 ?
Thanks,
John Chien