Hi,
I have to implement an RMI instant messaging application in Java for a
class project. I was given a stub to work with.
In the remote interface there is a method that like this that
registers the client with the server:
void register(RegistrationInfo reg) throws RemoteException;
My question is, where do I put the RegistrationInfo class? I have to
create a RegistrationInfo object on the client side, but then when I
call the remote method, it complains that it doesn't know what a
RegistrationInfo object is. Where do I put this class?
Thanks very much for your help.
Joshua Cranmer - 14 Oct 2007 02:17 GMT
> Hi,
>
[quoted text clipped - 12 lines]
>
> Thanks very much for your help.
Well, my first suggestion is to read this document:
<http://java.sun.com/javase/6/docs/technotes/guides/rmi/index.html>.
My second suggestion is to provide a SCCSE:
<http://www.physci.org/codes/sscce.html>.
My third suggestion is to post the full error message and backtrace here
along with your SCCSE and indication that you have read said document.

Signature
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth