This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configuration parameters

 
Charles Dupin
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was intending to start the server with the parameters:
-Djava.rmi.dgc.leaseValue=2000 -Dsun.rmi.dgc.checkInterval=1000
But the submission req says:

The command lines may only take configuration parameters selected from this list:
DNS name of the server
Port number used by the server
Data file name(s)
java.rmi.server.codebase
security manager policy file

What do you recommand?
C.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What do you recommand?

I recommend:
java -jar server.jar
java -jar client.jar
Eugene.
 
Prakash Krishnamurthy
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eugene:
By doing so, where have to specified the sever name, port etc....?
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

By doing so, where have to specified the sever name, port etc....?

The server program doesn't need to know the server name. As to the client, the user specifies it in the GUI. Regarding the port, 1099 can be assumed if not explicitely specified.
Eugene.
 
Charles Dupin
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eugene
if you dont specify -Djava.rmi.dgc.leaseValue=2000 -Dsun.rmi.dgc.checkInterval=1000
your server does not check for lost connections, isnt it. But may be you have another way to do it. I mean to enable the unreferenced...
Charles.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

if you dont specify -Djava.rmi.dgc.leaseValue=2000 -Dsun.rmi.dgc.checkInterval=1000
your server does not check for lost connections, isnt it. But may be you have another way to do it. I mean to enable the unreferenced...

You don't need to check for lost connections, don't risk losing points.
Eugene.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Charles Dupin:
if you dont specify -Djava.rmi.dgc.leaseValue=2000 -Dsun.rmi.dgc.checkInterval=1000
your server does not check for lost connections, isnt it.
It does. It just takes a bit longer to discover them. So what.
There is nothing wrong with documenting these flags as an optional way to tune the timeout in your "administrator's documentation". There is no need for the assessor to use these flags. The cleanup is not required and consequently the assessor won't need to use these flags.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic