• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parameters to be passed

 
Prakash Krishnamurthy
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My instructions say the following:
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

Through my GUI, I only pass the DNS name and the port number. Is that okay?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prakash,
I have thought about doing the same and setting codebase and security manager programatically, but I think I will handle command line options as well.
So by default, my standalone client, networked client, and server will all work without any options being entered (even server and port are optional since they default to reasonable values), but if the examiner wants to be able to test with their own policy file, (or a system wide one) they can - they are not forced into using mine.
Not saying you are wrong ... just that for the 15 minutes extra coding, it makes the program a bit more rounded.
Regards, Andrew
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is fine Prakash. Whatever you chose will be fine. Actually in my submission, I had only one argument which was DNS or IP address of the server, so almost exactly like yours, just no port number in my submission. I took the default port.

Andrew, don't use any SecurityManagers or Codebase, it is not needed. You only need them when dynamic downloading of classes is being done through a web server, which the assessors do not have.
Mark
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark,
Your suggestion makes sense (as always).
Regards, Andrew
 
Prakash Krishnamurthy
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
clear as mud! Thanks:-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic