FileDocCategorySizeDatePackage
RegistryCreator.javaAPI DocExample585Thu Nov 08 00:22:50 GMT 2001com.ora.rmibook.chapter14

RegistryCreator

public class RegistryCreator extends Object

Fields Summary
public static final int
OUR_PORT
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

         
        try {
            Registry ourRegistry = LocateRegistry.createRegistry(OUR_PORT);
            Registry preexistingRegistry = LocateRegistry.getRegistry(1099);

            preexistingRegistry.rebind("secondary registry", ourRegistry);
        } catch (RemoteException ignored) {
        }