Re: need Help in reflect an RMI object
- From: "fAnSKyer" <fanskyer@xxxxxxxxx>
- Date: 27 Sep 2006 17:34:10 -0700
EJP 写道:
fAnSKyer wrote:Actually how can I get a reference to a actual object?
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.
When I using RMI naming.lookup and I only get a interface..
If you're in another JVM and all you have is the stub, all you canI can call remote methods, but what I need is the values for the
usefully do is call remote methods on the stub, and you don't need
reflection for that.
variables? Can you tell me how to write a remote methods to get these
Variables? I doubt in this situation I have to use reflect?
Thanks a lot, FanS
.
- Follow-Ups:
- Re: need Help in reflect an RMI object
- From: Rodrigo Zechin
- Re: need Help in reflect an RMI object
- References:
- need Help in reflect an RMI object
- From: fAnSKyer
- Re: need Help in reflect an RMI object
- From: EJP
- need Help in reflect an RMI object
- Prev by Date: Re: Combobox how to disable edit but allow select
- Next by Date: Re: .war file and external ressources
- Previous by thread: Re: need Help in reflect an RMI object
- Next by thread: Re: need Help in reflect an RMI object
- Index(es):
Relevant Pages
|
|