Sep 21
|
The Registry class provides a list() method for this purpose.
// Find registry (on default port 1099) Registry registry = LocateRegistry.getRegistry(); // Get list of names bound to this registry String[] boundNames = registry.list(); for (String name : boundNames) { System.out.println(name); }