Hey guys, I have an interesting one for you here!
I have one object, called Server, that implements two RMI interfaces, CSCP and ISCP. I need my Clients to be able to communicate on the RMI CSCP interface, but know nothing of the ISCP interface, and I need other servers to communicate with it on the ISCP interface but know nothing of the CSCP interface. With me so far?
Basically, at the moment I have it set up so that it binds twice, once to "ISCP" in the rmiregistry, and once to "CSCP".
However, when clients try to bind (bear in mind they only know the CSCP interface), they get an exception saying they cannot find the class ISCP - but they should have NO need for it.
So, how do have one object (Server) present two different RMI interfaces on two different rmibindings, keeping them separate?
You're a genius if you can solve this one for me :D If I wasn't clear enough let me know!