Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.server.codebase - does it need to be set

 
Wei-ju Wu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I chose RMI for my networking stuff and it runs fine as long as I set the java.rmi.server.codebase property, if I omit it, the server refuses to run with a ClassNotfoundException, saying it misses the Stub class. Well, even though I use JDK 1.5, I used rmic on my server object class to generate a stub and in order prevent dynamic downloading. From the RMI documentation it seems that this property would only be needed if one wants to use dynamic downloading.

Still it seems that the server application needs to have that property set. The problem would be to properly determine which value I have to set it to. First of all, it does not seem to work if I set it to a jar file, but only to a directory. Second, I do not want to set it to an absolute path which will definitely not run in the reviewer's environment.

Did anyone choose the RMI way and got a good solution for that ? Since I work with CORBA most of the time, I have not much experience with RMI. Any help would be appreciated.

Wei-ju
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic