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
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.
Joined: Apr 21, 2002
Thanks a lot. I'm trying to learn all this from tutorials and books and it's a little slow going. Ray
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 ]