title: How can RMI client sees and get all dynamic remote objects registered in a registry?
body: <p>I have a requirement that the RMI client needs to get all remote objects registered in a remote RMI registry. </p>
  
  <p>First question, I know there is a method of registry.list() that returns all names of the objects. However how do I get the objects of exactly the type I want (implementing the interface that I want), supposed that there are also other kinds of objects registered as well. Shall I traverse the names and use a try/catch statement, trying to instanced each remote objects?</p>
  
  <p>Second question, how can a client gets noticed if a new object is registered? In my requirement, the servers will dynamicly registered new objects in to registry, and the client needs to get updated and access the new objects sooner. Shall I just use a thread to periodically list all names to find out new objects?</p>
  
  <p>Please note that the remote objects are to be exported from different nodes, but not from a same node. I know if they are from the same node, possibly I can use the call-back feature called from one of the instanced remote-object.</p>