aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Please Help! Clarification on Local vs Remote Approach. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Please Help! Clarification on Local vs Remote Approach. " Watch "Please Help! Clarification on Local vs Remote Approach. " New topic
Author

Please Help! Clarification on Local vs Remote Approach.

sudharsan, varadharajan
Greenhorn

Joined: Jul 12, 2001
Posts: 18
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help! Clarification on Local vs Remote Approach.