The Jini(TM) Technology Starter Kit v2.0x implementation (referred to in this document as v2.0) introduces significant new and changed functionality relative to the Jini Technology Starter Kit v1.2.1 (referred to in this document as v1.2.1). V2.0 also relies on features only provided by Java(TM) 2 platform, Standard Edition (J2SE(TM)) v1.4 and higher. The following is a summary of the changes which might impact an existing v1.2.1-based implementation.
Service deployment has changed significantly in v2.0. There have been numerous changes in the way services are configured and run:
java.util.logging package.
V2.0 services were packaged assuming that jsk-platform.jar would
be included in the clients classpath. It is unlikely that
jsk-platform.jar could be made downloadable without granting
extraordinary permissions to the service proxy.
V2.0 provides upward compatible net.jini APIs:
net.jini classes.
net.jini classes
without recompiling existing code. However, there are deployment
changes to consider as well:
ServiceDiscoveryManager remote event listener
defaults to exporting with Jini extensible remote invocation (Jini ERI) rather than JRMP. To be
compatible, a v1.2.1 lookup service must run on J2SE 1.4.1_02
or higher and have jsk-platform.jar in its classpath.
Incompatible changes have been made to some com.sun.jini classes.
com.sun.jini.fiddler.FiddlerAdmin
StorageLocationAdmin
getDebugProperty and setDebugProperty
methods were removed.
getSnapshotWeight, setSnapshotWeight,
getLogToSnapshotThreshold,
setLogToSnapshotThreshold, getLeaseDurationBound,
setLeaseDurationBound methods were renamed.
com.sun.jini.lease.AbstractLeaseMap is no longer serializable.
com.sun.jini.lease.BasicRenewalFailureEvent constructor
parameters and serialized fields changed from MarshalledObject
to MarshalledInstance.
com.sun.jini.mercury.MailboxAdmin no longer extends
StorageLocationAdmin.
com.sun.jini.start package has changed completely.
com.sun.jini.thread.RetryTask 1-arg constructor has been
removed.
Some com.sun.jini classes have been removed:
com.sun.jini.debug.Debug functionality has been replaced
with loggers from the java.util.logging package.
com.sun.jini.thread.ThreadDebug functionality has been
replaced with loggers from the java.util.logging package.
com.sun.jini.lease.landlord package has been replaced
by com.sun.jini.landlord.
com.sun.jini.reggie.RegistrarAdmin has been eliminated;
equivalent functionality is provided through configuration entries.
com.sun.jini.norm.NormAdmin has been eliminated;
equivalent functionality is provided through configuration entries.
com.sun.jini.proxy.UUID has been replaced by
net.jini.id.Uuid.
com.sun.jini.proxy.UUIDFactory has been replaced by
net.jini.id.UuidFactory.
V1.2.1-based applications or services running on a J2SE version earlier than J2SE 1.4 are not compatible with v2.0 services. However, compatibility can be achieved by running the v1.2.1 implementation on J2SE 1.4.1_02 or later, and properly configuring the v2.0 services. The following section provides the configuration information needed to achieve compatibility between combinations of clients, services, and lookup services.
In the table below, each row has only two of the first three columns filled. When the client and service columns are filled, the client gets the proxy from service and performs some operation. When the client and lookup columns are filled, the client discovers the lookup service and performs a lookup operation. When the service and lookup columns are filled, the service discovers the lookup service and registers itself.
Legend
jsk-platform.jar added to the classpath or correct classloader
(as required to preserve correct codebase annotation
of classes that are in both client/service/lookup codebase
and jsk-platform.jar). In some cases, it may also be
necessary to define
the system property -Djava.rmi.server.RMIClassLoaderSpi=default
to force the use of the default provider rather than the preferred
class provider.
jsk-platform.jar added to the classpath.
jsk-platform.jar
is installed only in v2.0 components.
jsk-platform.jar
is installed everywhere.
| Client | Service | Lookup | Compatibility Comments |
|---|---|---|---|
| 1.2 | 2.0 |
Incompatible because:
| |
| 2.0 | 1.2 |
Compatible if one of the following is true:
|
|
| 1.2 | 2.0 |
Incompatible because:
|
|
| 2.0 | 1.2 |
Compatible if one of the following is true:
|
|
| 1.2 | 2.0 |
Incompatible because:
|
|
| 2.0 | 1.2 |
Compatible if one of the following is true:
|
|
| 1.2modified | 2.0 |
Compatible if the service does not the require the client to authenticate
and one of the following is true:
|
|
| 2.0 | 1.2modified |
Compatible if the following is true:
|
|
| 1.2modified | 2.0 |
Compatible if lookup does not require the client to authenticate and one of the following is true:
|
|
| 2.0 | 1.2modified |
Compatible if the following is true:
|
|
| 1.2modified | 2.0 |
Compatible if the lookup does not require the service to authenticate and
one of the following is true:
Remote object is used as an entry field for a service attribute,
then the stub must be used as the value of that field, or the Remote object must implement
a writeReplace method that returns the stub.
|
|
| 2.0 | 1.2modified |
Compatible if the following is true:
|