File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI questions" Watch "RMI questions" New topic

RMI questions

Alex Gregory
Ranch Hand

Joined: Jun 15, 2002
Posts: 46
Hi, I have a few questions:
I create a server directory inside /suncertify and a client directory inside /suncertify.
Should I only run rmic inside the /server directory, or will the /client directory also need the stub and skeleton, or will it only need the stub? If I have my db.db inside starting/, is that where I should start rmiregistry?
Right now I had a Marshalling exception and I read the older posts about it but still cant figure it out. Any help would be great. Thanks guys. Also, do I need to worry about the Sun grader changing rmi.server.codebase or can i assume it will be localhost? Thanks.
Alex Gregory
Ranch Hand

Joined: Jun 15, 2002
Posts: 46
Guys, it doesnt get any more ridiculous than this: I had marshalling exceptions, ClassCast exceptions, and everything but the kitchen sink because I said java.rmi.codebase=.....\ instead of
java.rmi.codebase=..../ Flipping slashes does the trick, I hope no one has to go through the headache that this gave me.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You only need to include the stub in your client package, the skeleton is only used if you are using JDK 1.x, not in JDK 1.2.x - Remember to put the remote interface in the client package as well.

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: RMI questions
It's not a secret anymore!