File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Basic RMI Question on Webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Basic RMI Question on Webserver" Watch "Basic RMI Question on Webserver" New topic
Author

Basic RMI Question on Webserver

Ray Little
Greenhorn

Joined: Apr 21, 2002
Posts: 22
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

Joined: Jun 27, 2000
Posts: 213
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

Joined: Apr 21, 2002
Posts: 22
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

Joined: Feb 21, 2003
Posts: 9
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic RMI Question on Webserver