File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S RMI Options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S RMI Options" Watch "B&S RMI Options" New topic
Author

B&S RMI Options

Ian Redknapp
Greenhorn

Joined: Jun 20, 2005
Posts: 3
To run my remote server i require the command line option:
'-Djava.rmi.server.codebase=file:///path/to/classes' however the assignment explicitly states 'Your programs must not require use of command line property specifications.' I would incldue specifiying the codebase within command line property specifications.

Am I missing something technically or am I reading too greater restriction into the specification ?
Jack Gold
Ranch Hand

Joined: Feb 04, 2005
Posts: 85
You could employ a dialog to capture this information and/or use a properties file.


SCJP 1.4<br />SCJD <br />SCWCD (Studying)
Ian Redknapp
Greenhorn

Joined: Jun 20, 2005
Posts: 3
The assignment also states that the examiner 'must not require manual editing of any files' and I would consider an odd design where you set the location of the code once the application is running.
Frans Janssen
Ranch Hand

Joined: Dec 29, 2004
Posts: 357
Hi Ian,

You should not need such a setting. I am not an RMI expert, but I got it to run without having to make such a setting, neither from the command-line nor from within my program.

Did you use LocateRegistry.createRegistry() to create your RMI registry?

Frans.


SCJP 1.4, SCJD
Ian Redknapp
Greenhorn

Joined: Jun 20, 2005
Posts: 3
Thanks, that works a treat. Had been manually starting a registry previously.
 
 
subject: B&S RMI Options