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.
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).
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??
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.