Spec-Zone .ru
спецификации, руководства, описания, API
|
CONTENTS | PREV | NEXT | Java Remote Method Invocation |
The following table contains a list of properties typically used by servers for configuration. Note that properties are typically restricted from being set from applets.
Property Description
java.rmi.server.codebase
Indicates the codebase URL of classes originating from the JVM. The codebase property is used to annotate class descriptors of classes originating from a JVM so that the class for an object sent as a parameter or return value in a remote method call can be loaded at the receiver.
java.rmi.server.disableHttp
If set to
true
, disables the use of HTTP for RMI calls. This means that RMI will never resort to using HTTP to invoke a call via a firewall. Defaults tofalse
(HTTP usage is enabled).
java.rmi.server.hostname
RMI uses IP addresses to indicate the location of a server (embedded in a remote reference). If the use of a hostname is desired, this property is used to specify the fully-qualified hostname for RMI to use for remote objects exported to the local JVM. The property can also be set to an IP address. Not set by default.
java.rmi.dgc.leaseValue
Sets the lease duration that the RMI runtime grants to clients referencing remote objects in the JVM. Defaults to 10 minutes.
java.rmi.server.logCalls
If set to
true
, server call logging is turned on and prints to stderr. Defaults tofalse
.
java.rmi.server.useCodebaseOnly
If set to
true
, when RMI loads classes (if not available viaCLASSPATH
) they are only loaded using the URL specified by the propertyjava.rmi.server.codebase
.
java.rmi.server.useLocalHostname
If the
java.rmi.server.hostname
property is not set and this property is set, then RMI will not use an IP address to denote the location (embedded in remote references) of remote objects that are exported into the JVM. Instead, RMI will use the value of the call to the methodjava.net.InetAddress.getLocalHost
.