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
posted
0
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