Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where should suncertify.properties file be located

 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The instruction said "suncertify.properties file must be located in the current working directory"

Where is the current working directory?
If my server is under /suncertify/server, is this where I should put suncertify.properties in?

Thanks

Lee
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;

it must be located in the current working directory, so in the same folder where the runme.jar file reside. because the app will run with out any classpath list so the current working directory is the same folder.

Regards.
Mohamed Darim.
 
John Mattman
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wondering! Shouldn't it be in the class directory
 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
Do you mean suncertify.properties is supposed to be located in the same folder with runme.jar?

But it seems client and server GUI both need suncertify.properties.
but it doesn't make sense that put all client and server settings in the same file becuase client and server should be different machine.

Thanks

Lee
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chih-Wei Lee:
[QB]Hi:
Do you mean suncertify.properties is supposed to be located in the same folder with runme.jar?


Yes, the file should be created at the same level as runme.jar (which is your current directory).


But it seems client and server GUI both need suncertify.properties.
but it doesn't make sense that put all client and server settings in the same file becuase client and server should be different machine.


When executing on different machine, both applications are accessing 2 distinct files (that happen to have the same name).

Since your application can be launched in multiple mode, you could consider using multiple keywords to distinguish them :

- server.ip=locahost
- client.ip=127.0.0.1
- ...
[ March 16, 2008: Message edited by: Alex Belisle Turcot ]
 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot
Very useful response
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;

in the properties file i think we can use just one key for server host address

complete props example:

dblocation=c:\\project\\db.db
serverPort=9876
serverAddress=localhost

and use these configuration in the standalone mode and in the network mode
so the server and client alone and client network will use the same file.

Why not ?

Best regards.
Mohammed Darim.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic