• Post Reply Bookmark Topic Watch Topic
  • New Topic

Client Client Communication in RMI ??  RSS feed

 
Kunal Aher
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!