Communication between Java applets has been an interesting topic from the early days of Java. الاتصال بين بريمجات جافا كان الموضوع مثيرا للاهتمام منذ الايام الاولى للجافا. There are several esoteric ways to communicate like using Javascript as a bridge. وهناك عدة طرق للاتصال باطني مثل استخدام جافا سكريبت بوصفها جسرا. However we will look into the simplest and most reliable method of intra-applet communication. ومع ذلك سنبحث في أبسط وأكثر وسيلة يمكن التعويل عليها من داخل بريمج الاتصال.

Simple solution to applet communication problem حل بسيط لمشكلة الاتصالات بريمج
Use a class with static getters and setters method(s) to pass data around. استخدام الطبقة مع ساكنة حاصل على واضعه طريقة (ق) لاصدار بيانات حول. Since the applets are loaded in the same JVM, the static methods can be used to share any kind of data between the applets. منذ بريمجات تحميل فى نفس jvm ، ساكنة الاساليب يمكن استخدامها لتبادل اي نوع من البيانات بين تطبيقات.

Another more complex solution is to use the database to communicate data between the applets. اخر اكثر تعقيدا الحل هو استخدام قاعدة بيانات للاتصال بين تطبيقات البيانات. This may be useful if the applets are on different machines or different JVM’s as in two application server / tomcat instances. وهذا قد يكون من المفيد ان بريمجات على مختلف الآلات المختلفة او jvm للإثنين كما هو الحال في تطبيق خادم / قط الحالات.