I have been reading the great discussions on this forum and have begun my developer assignment. I have a connection factory that binds to the RMI registry. This factory has two instance variables...the data class and a class that supports the lock and unlock methods. To keep these classes lossely coupled, I made an inner class in the factory that each client will receive. This inner class implements my remote data interface (which extends the data interface), but when I bind a client to my factory and call getConnection(), it is supposed to return an instance of my inner class as its interface type (data interface). But I receive a ClassCastException every time I do this. I assume it is because of the implicit reference to the outer class (my factory or stub class). Has anyone come accross this issue before? I am relatively new to RMI and am not sure where to proceed from here?! I guess I could have a separate class (as opposed to an inner one), but then I will have to pass references to my data instance and my locking class in its constructor?
Any help would be appreciated!
Thanks,
Todd
[ January 25, 2002: Message edited by: Todd Harney ]
[ January 25, 2002: Message edited by: Todd Harney ]
[ January 25, 2002: Message edited by: Todd Harney ]