posted 22 years ago
Two days ago, when I first set out to do my first RMI example, I had perfectly blondish hair. Yesterday I started to get some grey hair and as of this hour I AM COMPLETELY BALD....!!!
I might be off track here, and my hopes are that someone will correct me and make me realise my stupidity... I have three files in one package (dev):
My problem is this: if I have this in package dev, it works like a charm! But RMI is about to have a service on one computer and a client program on another, so I figure that it should be possible to split these files up in some way so that the client and the server are separated. I JUST CAN'T MAKE IT WORK!!! I have tried:
Putting DataInterface and Server (plus Server_Stub and Server_Skel) in one package Serv.
Putting Datainterface and Client in another package Clie.
This makes Client go mad, since the object received is of type Server_Stub, and Server_Stub implements Serv.DataInterface...
If someone could take the time to enlighten me, I would be glad...
Thanks!
/Kaspar