RMI Method takes and processes object - Where do i put the class?

K

KDawg44

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.
 
J

Joshua Cranmer

KDawg44 said:
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.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top