Communication between Java applets has been an interesting topic from the early days of Java. La comunicazione tra le applet Java è stato un argomento interessante fin dai primi giorni di Java. There are several esoteric ways to communicate like using Javascript as a bridge. Ci sono diversi modi per esoterici come comunicare con il Javascript come un ponte. However we will look into the simplest and most reliable method of intra-applet communication. Tuttavia noi per esaminare la più semplice e più affidabile metodo di intra-applet comunicazione.

Simple solution to applet communication problem Soluzione semplice per applet problema di comunicazione
Use a class with static getters and setters method(s) to pass data around. Utilizzare con una classe statica Getters e metodo contabile (s) di passare nei pressi di dati. Since the applets are loaded in the same JVM, the static methods can be used to share any kind of data between the applets. Dal momento che le applet sono caricati nella stessa JVM, i metodi statici può essere utilizzata per condividere qualsiasi tipo di dati tra le applet.

Another more complex solution is to use the database to communicate data between the applets. Un'altra più complessa soluzione è quella di utilizzare la banca dati per comunicare dati tra le applet. This may be useful if the applets are on different machines or different JVM’s as in two application server / tomcat instances. Questo può essere utile se le applet sono su macchine diverse o diverse JVM come in due server di applicazioni / tomcat istanze.