• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI questions

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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�
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic