• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic