Hi AnilS, No.You can use any valid URL protocol such as HTTP, file or ftp . You can set codebase property to handle any one of these protocols. HTTP is a preferred way as it makes things easy by providing an automated mechanism for downloading class files. Hope this helps. Regards, Milind
[This message has been edited by Milind Kulkarni (edited June 03, 2000).]
Milind, Could you please explain exact steps required to test RMI using File:// URL ? I was trying to test an RMI application using file:// URLs for codebase but was unsuccessful. I was able to run RMI applciation using the minimal class server from Sun. But I would like to understand the details of using file:/// URL also. All the tutorials I read do confirm that we can use file:/// URL as server's codebase if both RMI server and client are running on the same machine. But all of them have examples only on HTTP:// codebase and most of the time using applets only. If I use HTTP URL, HTTP server dynamically downloads the _stub and other class files from server's codebase to RMI client right ? With file:/// URL as codebase, is there still a need to download the .class files to client JVM ? if yes how does it take place ? Thanks for your help, Mahesh H.