Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Please Help! Clarification on Local vs Remote Approach.

 
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

 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic