Thanks for answering!
Still, I don't quite get it.
It seems to me that what I've done is quite simular to what's been done in the book.
To review the code fragment I posted earlier:
The RemoteDataProxy is the made the remote object:
On the client I connect to the remote object:
But when I try to cast the remoteObject into DataProxy, I get a cast-exception. I don't see how this is different from whats been done in the book.
If I understand the earlier post by Jim Yingst correctly; rmic, when generating the stubs, considers all non-Remote interfaces the remote object implements as implementation details that should be hidden from the client. Hence, the generated stubs do not implement any non-Remote interfaces.
However, looking at the code in the book it seems to me the generated stubs do implement non-Remote interfaces, as it is casted to one:
What I would like to know is; in which cases the remote object can be casted to a non-Remote interface, and in which cases it cannot (obviously in mine, at least

). I would like to get it by teaspoon (don't know if this makes sense to you, it what we say in Norway when someone needs a thoroughly expaination).
Tanks for you patience!
Tankred
Not stupid, only slow!