java.rmi
PropertiesPlease Note: Unless otherwise stated, any output from
these properties is sent to System.err
.
java.rmi.activation.port
rmid
(by default,
rmid
listens on port 1098, but can be set to listen on
a different port by using the -port
option on the
rmid
command line). The default value of this property
is 1098, so this property only needs to be set on VMs that need to
communicate with an instance of rmid
that is running
on a port other than 1098.java.rmi.dgc.leaseValue
Unreferenced.unreferenced
. The
default value of this property is 600000 milliseconds (10
minutes).java.rmi.server.codebase
Note: This property must be set correctly in order to
dynamically download classes and interfaces using
Java Remote Method Invocation
(Java RMI). If this property is not set correctly, you will likely
encounter exceptions when attempting to run your server or client.
For more information on this property, see Dynamic code downloading using Java RMI (Using
the java.rmi.server.codebase
Property).
java.rmi.server.hostname
java.rmi.server.logCalls
true
, incoming calls and
exceptions thrown from incoming calls will be logged to
System.err
. Setting this property to true
will greatly assist you in debugging your RMI programs. See also
sun.rmi.server.exceptionTrace
.java.rmi.server.randomIDs
true
, object identifiers for
remote objects exported by this VM will be generated by using a
cryptographically secure random number generator. The default value
is false
.java.rmi.server.useCodebaseOnly
true
, automatic loading of
classes is prohibited except from the local CLASSPATH and
from the java.rmi.server.codebase
property set on this
VM. Use of this property prevents client VMs from dynamically
downloading bytecodes from other codebases.java.rmi.server.useLocalHostname
java.rmi.server.hostname
property is not specified
and a fully qualified domain name for the localhost cannot be
obtained. In order to force Java RMI to use the fully qualified
domain name by default, you need to set the this property to
true
.java.rmi.server.codebase
Note: Classes that exist in both the server's codebase
and the client's CLASSPATH will be loaded from the client's
CLASSPATH, rather than from the server's codebase as intended. For
more information on this property, see Dynamic code downloading using Java RMI (Using
the java.rmi.server.codebase
Property).
java.rmi.server.disableHttp
true
, HTTP tunneling is disabled,
even when http.proxyHost
is set. The default value is
false
. If you know that your program will never need
to use HTTP tunneling, then by disabling HTTP tunneling, you should
see shorter timeouts for failed connections.java.rmi.server.useCodebaseOnly
true
, automatic loading of
classes is prohibited except from the local CLASSPATH and
from the java.rmi.server.codebase
property set on this
VM. Use of this property prevents client VMs from dynamically
downloading bytecodes from other codebases.