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.
You don't need to know how to transfer the .class file from the client to the server as long as you have the stub in your client and make sure the server is running. The stub is responsible of making a network communication with your server.
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?
Joined: Feb 23, 2007
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.