How can we use a servlet as a proxy for communications between two applets?
Jim Garrett Jim Garrett writes:
One way to accomplish this is to have the applets communicate via TCP/IP sockets to the servlet. The servlet would then use a custom protocol to receive and push information between applets. However, this solution does have firewall problems if the system is to be used over and Internet verses an Intranet.Alex Chaffee adds:
You could also have the applets use HTTP to communicate with the servlet, using the standard URLConnection classes as described in How can my applet communicate with my servlet?. This is more likely to get through the firewall, but it means that the second (receiver) applet must continually poll the servlet to check for new information.Jim Garrett continues: