• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help! Clarification on Local vs Remote Approach.

 
sudharsan, varadharajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have thought of 2 ways to approach the Operating Mode
Local versus REMOTE implementation and I kindly request
the opinion of gurus on which one is preferable to use.
OPTION 1:
*********
In my README File STEP 1 is as follows:
1.) Run my Application Class which takes in command line parameters as follows:
<AppClass> <Data File Name>
If the no of parameters is ONLY 1, then it is DEFINITELY
LOCAL MODE.
Proceed with Local Mode Implementation( Therefore All
Networking is ByPassed )
If not, the Mode is automatically NETWORK
2.) So, Prompt the User for dns, port number, codebase, security manager policy file location etc.
3.) Now, PROGRAMMATICALLY THROUGH CODE, Start rmiregistry.
4.) Now, PROGRAMMATICALLY THROUGH CODE, Start RMIServer on
specified
DNS and POrt and using other parameters.
5.) Proceed with NETWORKED IMPLEMENTATION
6.) Once the User is done with ui, provide explicit instructions
in README to ask user to stop the rmiserver( CTRL+C , I guess)
and rmiregistry( CTRL+C).
OPTION 2:
********
Provide 2 separate paragraphs in README . First paragraph is
"IF YOU WANT TO DO LOCAL" and the Second paragraph is
"IF YOU WANT TO DO NETWORK".
IF YOU WANT TO DO LOCAL:
***********************
1.) Run my Application Class which takes in command line
parameters as follows:
<AppClass> <Data File Name>
IF YOU WANT TO DO NETWORK:
**************************
1.) Specify steps to start RMIRegistry
2.) Specify steps to start RMIServer using dns, port,codebase,
security manager policy file etc.
3.) Run <policy file> <code base> <AppClass>
MY OPINION:
**********
I prefer option 2 as it is easy. But the problem is, can the grader think that he is not being given a chance to select the operating mode using the program? With option 1, should I start the rmiregistry on the remote dns and user specified port
or should I just start it using ONLY the default port(1099)??
Eagerly awaiting Reply,
sudharsan

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic