• 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

configuration parameters

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


What do you recommand?


I recommend:
java -jar server.jar
java -jar client.jar
Eugene.
 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic