Remote Interface

Is it possible to determine the name of the remote interface upon connection to a remote server?

Im looking at ennumerating the methods of the remote interface to create a client for a server if you don't have the original one. The client will be created from scratch so no knowledge of the interface or genuine client is available. Only the rmi server IP and registry names. Ive looked at reflection but it seems that you need the name of the class to use this? Any ideas? Thanks.

[495 byte] By [Notinoa] at [2007-10-3 4:40:15]
# 1
List the items in the Registry.For each one:look it upyou then have an Object, get its Class, get its Interfaces, ignore those which don't extend Remote.For each of the remaining interfaces, get its Methods.And there you are.
ejpa at 2007-7-14 22:44:12 > top of Java-index,Core,Core APIs...