Hi, I really love Transparent RMI, the only one thing that bothers me from time to time is how to deal with listeners or callbacks in general. My solution till now was to manually define a MyRemoteListener interface that is basically the same as MyListener with the addition of RemoteExceptions following standard RMI, and a wrapper for MyListener objects that implements the UnicastRemoteObject, however that means I also have to adapt the exposed interface since it needs to accept MyRemoteListener instead of MyListener which till now is just an inconvenience but could be problematic.
So I was wondering if a solution was possible that e.g. allows you to define that certain methods are add/remove methods for listeners during/after binding, so when the method is called the stub automatically wraps the given object into a RemoteObjectWrapper with the listener interface exposed before calling the method on the server, so the callback from the server works correctly and does not require an RMI implementation.
Best Regards,
seifrox