wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S RMI Options" Watch "B&S RMI Options" New topic

B&S RMI Options

Ian Redknapp

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

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?


Ian Redknapp

Joined: Jun 20, 2005
Posts: 3
Thanks, that works a treat. Had been manually starting a registry previously.
I agree. Here's the link: http://aspose.com/file-tools
subject: B&S RMI Options
Similar Threads
BETA Properties file
Puzzled by the instruction.
B&S Locking Test
Should server configuration be provided by suncertify.properties ?
Problem about launch RMI server: