The moose likes Distributed Java and the fly likes Client Client Communication in RMI ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Client Client Communication in RMI ??" Watch "Client Client Communication in RMI ??" New topic
Author

Client Client Communication in RMI ??

Kunal Aher
Greenhorn

Joined: Apr 07, 2000
Posts: 20
I am implementing an application where two clients ( applets)communicate with each other . Initially they can get the reference to the other using the Server but once they have the reference can they directly communicate wth each other. I have tried this approach but it doesnt works . The applet throws Security Exceptions !!
Has anyone tried this ? Or is there a better approach ?
Regards
Kunal


Kunal
Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
I think you need to use the server. Jason Hunter's book on Servlets, has a chapter dedicated to a chat room. One of the ways to communicate is with rmi. The applets communicate with a servlet that takes care of the rmi server, and then servlet takes care of the communication.
- Sean
 
IntelliJ Java IDE
 
subject: Client Client Communication in RMI ??
 
Threads others viewed
UDP communication between C++ and Java does not work
RMI binding to more than one IP
Sockets
RMI server communication with client
Web Service Vs JINI
MyEclipse, The Clear Choice