Hi,
I have 2 processes A and B.
Both already communicate via Sockets.
I need B to use a callback on an object in A.
This is an RMI Object.
When I pass the Reference to the RMI object in a serialized Object to B, B involkes the callback method.
However The callback is executed on B.
i.e. It looks like the Remote RMI Object is serialized accross to B and B then involkes the method on the newly created RMI object living in its process.
I have tried passing Interface refs, Object Refs and RemoteRefs but to no avail.
I can't see the issue as I thought java will not serialize any object which extends remote.
Any ideas
Thanks
I have 2 processes A and B.
Both already communicate via Sockets.
I need B to use a callback on an object in A.
This is an RMI Object.
When I pass the Reference to the RMI object in a serialized Object to B, B involkes the callback method.
However The callback is executed on B.
i.e. It looks like the Remote RMI Object is serialized accross to B and B then involkes the method on the newly created RMI object living in its process.
I have tried passing Interface refs, Object Refs and RemoteRefs but to no avail.
I can't see the issue as I thought java will not serialize any object which extends remote.
Any ideas
Thanks