Option '-Djava.rmi.server.hostname' unnecessary?
807569Aug 10 2006 — edited Aug 10 2006In this tutorial:
http://java.sun.com/docs/books/tutorial/rmi/running.html
you start the rmi server with:
java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes/
-Djava.rmi.server.hostname=zaphod.east.sun.com
-Djava.security.policy=java.policy
engine.ComputeEngine
but in this tutorial:
http://java.sun.com/j2se/1.4.2/docs/guide/rmi/getstart.doc.html#5321
you start it without the Djava.rmi.server.hostname option:
java -Djava.rmi.server.codebase=http://myhost/~myusrname/myclasses/ -Djava.security.policy=$HOME/mysrc/policy examples.hello.HelloImpl
I have also tried to omit the hostname option from the first tutorial and it works fine..
Why is it not necessary to specify the Djava.rmi.server.hostname option to make the examples work?
What is the function of this option?