File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes database file name 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 "database file name" Watch "database file name" New topic

database file name

John Chien
Ranch Hand

Joined: Feb 06, 2003
Posts: 105
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
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.
John Chien

SCJP, SCJD, SCWCD, SCBCD<br />IBM Certified Specialist (158)<br />Oracle9i PL/SQL Developer Certified Associate
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

Please let me what the accessor will do.

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.
John Chien
Ranch Hand

Joined: Feb 06, 2003
Posts: 105
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
Both classes are in server package.
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 ?

John Chien
I agree. Here's the link:
subject: database file name
It's not a secret anymore!