• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is a HTTP(/ftp) server required to run RMI programs over multiple machines??  RSS feed

 
zul' Zorander
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie to RMI programming, so this question may sound trivial. What I understand after reading some material on RMI is that we need to have a server running and set a codebase to run RMI programs in multiple machines. Is running the server necessary??? Can I make all the class files available at each client,avoiding the need to set codebase and achieve distributed computing??? Any suggestions in this regard would be rally helpful.

Thanks
Zeddicus
 
Vijitha Kumara
Saloon Keeper
Posts: 3999
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
zul' Zorander wrote:... Is running the server necessary???

Yes. If you want the client to download the classes dynamically those classes should be available to the clients.
Can I make all the class files available at each client,avoiding the need to set codebase and achieve distributed computing??? Any suggestions in this regard would be rally helpful.

Then you are loosing some important features of RMI (ability to download/serve the classes dynamically).
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is running the server necessary???

If you're talking about HTTP/FTP server, no, you don't need it. If you're talking about RMI server, yes, you need it.

RMI doesn't use HTTP or FTP, but it's possible to use HTTP tunelling with RMI.

Hope it helps.
 
zul' Zorander
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vijitha and Freddy for your replies
My requirement doesnot allow me to host any server (http,ftp,rmi). I had run my program sucessfully from a diffrent machine by placing all classes required by the client program in that machine. Is it a good practice??? Any thoughts??

Thanks
Zeddicus
 
Ajay Saxena
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you'd be better off letting us know your requirements in detail. Why would you even consider RMI/HTTP/FTP etc if you are not really building a client -server or peer-2-peer kind of application? I'd like to understand what motivated you to consider RMI in the first place.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!