• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Parameters to be passed

 
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?
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • 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:-)
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic