I am just playing around with JBoss Remoting - I have managed to successfully call a ProviderInterfaces Methods.
However now I would like to use the provider interface to return different Services to the Client.
For this I have made a new Interface for the Service and the corresponding Implementation on the Server - MedicalProviderInterface + MedicalProviderImpl
The ServiceProvider has a method that generates a new MedicalProviderImpl
In the client I perform following code for the call, only knows about MedicalProviderInterface and not MedicalProviderImpl:
This results in the following error code:
I know it is complaing about not having imported MedicalProviderImpl - but I want to be able to make the calls to MedicalProviderImpl on the server via the Inteface without importing it to the client. Also I would like to be albe to get these services via my Profider so that I have a single access point.
Many thanks in advanced for your help. If you can see any major flaws in my approach I would also appreciate any pointers.