• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Is it necessary to implement an HTTP server in RMI? I want to be sure aabout this as most of the documentation available is relaated to HTTP server.
Thanks,
Anil
 
Milind Kulkarni
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Mahesh Hegde
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Milind Kulkarni
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mahesh,
Check out the following file:
ftp://ftp.javasoft.com/pub/jdk1.1/rmi/class-server.zip.
Regards,
Milind

[This message has been edited by Milind Kulkarni (edited June 05, 2000).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!