• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

database file name

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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.
Eugene.
 
John Chien
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic