• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI questions

 
Alex Gregory
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
/Ren´┐Ż
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic