jas.jds
Class RMIProtocol

java.lang.Object
  |
  +--jas.jds.RMIProtocol

public class RMIProtocol
extends java.lang.Object

A class for encapsulating the RMI protocol handling in the Java Data Server


Constructor Summary
RMIProtocol()
           
 
Method Summary
static void main(java.lang.String[] argv)
          The following parameters can be passed to the main method:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIProtocol

public RMIProtocol()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws NestedException
The following parameters can be passed to the main method:
      createRegistry  yes:no:ifneeded     default:ifneeded
      port            :default:auto    default:default
      service                       default:JDSServer
      rebind          yes:no              default:yes
      node                          default:localhost
      AccessManager   :null         default:null
 
each of these parameters may also be set from the SystemProperties, by prefixing the parameter with jas.jds.rmi, e.g.
 java -Djas.jds.rmi.rebind=yes ...
 
The parameters have the following meaning:
      port            The port to use for the RMIRegistry (defauly 1099)
                      If auto is specified, then a registry will be created
                      on a randomly assigned unused port.
      service         The service name to bind into the RMIRegistry
      createRegistry  yes: Always attempt to create a registry (will fail 
                      if registry already exists on specified port)
                      no: Will fail if registry does not already exists on
                      specified port
                      ifneeded: Will create registry as neeeded.
      rebind          yes: Will replace existing service name if it already exists in registry
                      no: Will throw an exception if the service name is already bound 
      node            Connect to a registry on a remote node. This will not
                      work with the standard sun implementation of RMIRegistry.