Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic RMI Question on Webserver

 
Ray Little
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I'm reading correctly RMI requires the server (and also client?) to have a web server. Does this mean that I have to load a webserver to run RMI or is this normally part of the OS? (Windows 2K and Linux).
Ray
 
Junaid Bhatra
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If both your client and server have the stub files avaliable locally on the classpath, then you don't need a webserver. A webserver is typically needed for dynamic downloading of the stub & other dependent class files (via the rmi.server.codebase property). Sun does provide a simply file-based server, but for production purposes, you would really need a full-blown webserver if you want to achieve dynamic downloading of class files.
 
Ray Little
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot. I'm trying to learn all this from tutorials and books and it's a little slow going.
Ray
 
Grigory Ptashko
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ray,
AFAIK it is not necessary to have a web-server for dynamic stub downloading.
You may consider the following model (RMI can do this). You start the rmiregistry (with the empty CLASSPATH variable) and start the server with the set-in-the-proper way property "java.rmi.server.codebase". After this you can have a client of taht server which has only the remote interface without stubs. After calling your stubs will be downloaded automatically.
[ April 17, 2003: Message edited by: Grigory Ptashko ]
[ April 17, 2003: Message edited by: Grigory Ptashko ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic