I have read about the concepts of RMI. I have understood its concepts and the program.
If I want to run it in a standalone computer then its fine, but I want to run it in a networked environment then please do let me know how to deploy the RMI application. I would like to know how to transport the .class files which are needed on server and client computer.
Please do explain me and also do provide me the link where I can find more details on this.
Thanks and Regards,
You may want to read this.
Hope it helps.
I had already read this, but couldn't understand much of it.
I would not like to use a command line utility rather I would like to use an eclipse plugin.
This tutorial talks about a web server in a networked environment. I would like to know what's the role of web server here and which files do we transfer to the web server.
For e.g. if I want to make a chat server using RMI then which java files would be on the server and which files should be on each client and how do I make each client download the respective files.
This is my main cause of confusion.
Any update on this?
Please provide me the information about deploying an RMI application in a networked environment.
Siddharth Bhargava wrote:Please provide me the information about deploying an RMI application in a networked environment.
Why do you want to do this? Most folks these days pass messages back and forth, not Java objects.
RMI can be made to work, but I'm not convinced that its worth the trouble most of the time.
I would like to build a chat application using RMI.
For this, I would need a server on one computer and various clients connecting to the server from various other computers in a networked environment.
Please help me
Siddharth Bhargava wrote:I would like to build a chat application using RMI.
I see this as two possible questions:
1) I would like to build a chat application.
2) I would like to build a chat application using RMI.
I would strongly recommend that you phrase it as #1, and don't use RMI. You can much more easily write a chat application without all the baggage and complexity of RMI. It would be a better application. And you could do things like write the server side using Java and offer many implementations of the client in Java and python and perl and c#, etc.
So the question is, do you "require" RMI because of an external complain, say this if for a class assignment ?
or do you think you need RMI because you don't know how to start doing it another way?
I would like to built a chat application using RMI as it would solve my purpose of learning RMI and using it in a networked environment.
I am not doing it for any class assignment. Also I know how to do it in other ways, its just that it would help me in learning RMI in a networked environment.
Siddharth Bhargava wrote: Also I know how to do it in other ways, its just that it would help me in learning RMI in a networked environment.
In that case, I'll be quiet and let someone else help.
from the little I know about RMI...
You need the the RMIserver, RMIimplementation, and RMIclass files at the server.....
and RMIclass, and RMIclient at the client side...!!
RMIServer - the class that binds the class
RMIimplementation - the class that has the implementation of the class
RMIclass - the class that has the interface
RMIclient - name is suggestive...