Hi All,
I was doing the URLyBird assignment and used RMI for the same. I came across a problem for which i needed help desperately.
I have a "Service" Interface which takes in a "Task" and returns back a "Result" all of these are interfaces. I had thought that i will keep the implementation on the server side so that the client is not affected by any new additions of Actions (Book, Find).
But when i have the standalone mode then i will need the access to the Implementing classes (TaskImpl and ResultImpl) as on the client side i will need to instantiate these objects. So I will have to move this part of the code to my common package which would be needed on the client side as well as the server side.
This defies my logic of having the Interfaces for Task and Result. Please can someone tell if i am missing out on something in here? Or is it that i indeed need to have the *Impl classes in the common package?
Please reply as i am stuck up badly on this