From: James M. <jam...@ma...> - 2003-08-20 14:38:17
|
I've tried making a change to rmi-lite (see below) to store a reference to the RemoteInvocationHandlerImpl created in the invoke method of RemoteInvocationHandlerImpl as Charles suggested, but this doesn't seem to make any difference. Have I misunderstood? Can you give me any ideas...? Thanks, James. public class RemoteInvocationHandlerImpl ... { ... private List handlers = new ArrayList(); public Object invoke(...) { ... if (exportedInterfaces.contains(method.getReturnType())) { RemoteInvocationHandler handler = new RemoteInvocationHandlerImpl(returnValue, exportedInterfaces); handlers.add(handler); returnValue = UnicastRemoteObject.toStub(handler); } } } |