[ Back | Previous | Next ]

How to start RMIRegistry programmatically

Package:
java.rmi.*
Product:
JDK
Release:
1.1.x
Related Links:
General
LocateRegistry
Comment:
	  try {
		 java.rmi.registry.LocateRegistry.createRegistry(1099);
		 System.out.println("RMI registry ready.");
	  } catch (Exception e) {
		 System.out.println("Exception starting RMI registry:");
		 e.printStackTrace();
	  }	

1