[TOC] [Prev] [Next]

# Properties In RMI

### Topics:

- Server Properties
- Other Properties

# Server Properties

The following table contains a list of properties typically used by servers for configuration.

Property | Description
--- | ---
java.rmi.server.codebase | Indicates the server's codebase URL where classes are available for clients to download.
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 to false (HTTP usage is enabled).
java.rmi.server.hostname | Used to specify the fully-qualified hostname, if one is not available via the InetAddress.getLocalHost() call. Not set by default.
java.rmi.dgc.leaseValue | Sets the maximum lease duration that is granted for clients referencing remote objects in the VM. Defaults to 10 minutes.
java.rmi.server.logCalls | If set to true, server call logging is turned on and prints to stderr. Defaults to false.
java.rmi.server.useCodebaseOnly | If set to true, when RMI loads classes (if not available via CLASSPATH) they are only loaded using the URL specified by the property java.rmi.server.codebase.

# Other Properties

These properties are used to locate specific implementation classes within implementation packages.

Property | Description
--- | ---
java.rmi.loader.packagePrefix | The package prefix for the class that implements the interface java.rmi.server.LoaderHandler. Defaults to sun.rmi.server.
java.rmi.registry.packagePrefix | The package prefix for the class that implements the interface java.rmi.registry.RegistryHandler. Defaults to sun.rmi.registry.
java.rmi.server.packagePrefix | The server package prefix. Assumes that the implementation of the server reference classes (such as UnicastRef and UnicastServerRef) are located in the package defined by the prefix. Defaults to sun.rmi.server.

[TOC] [Prev] [Next]

Copyright © 1996, 1997 Sun Microsystems, Inc. All rights reserved.