Re: need Help in reflect an RMI object



fAnSKyer wrote:

I want to reflect an RMI object. and save the values of each variable
using field.

However I can only get the interface of the RMI object.

If I reflect the interface, I can't get the what I need. But I don't
know how to reflect the RMI object.

You can only do that from inside the JVM where the remote object was exported from, because that's where the variables are, and you need a reference to the actual object, not to the stub.

If you're in another JVM and all you have is the stub, all you can usefully do is call remote methods on the stub, and you don't need reflection for that.
.