How To Communicate Between Java Applets كيفية التواصل بين بريمجات جافا
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 للإثنين كما هو الحال في تطبيق خادم / قط الحالات.
Filed under المقدم بمقتضى Enterprise Software المشاريع والبرامج , ، Headline News أهم الانباء , ، How To كيف , ، J2EE تنافسية , ، Java Software برنامج جافا , ، Javascript جافا سكريبت , ، Open Source Software برامج المصدر المفتوح , ، Programming البرمجه , ، Tech Note ملاحظه تقنيه , ، Web شبكة , ، Web Services خدمات الشبكه العالمية | |
| |
RSS 2.0 ار اس اس 2،0 | |
Trackback this Article | هذه المادة |
Email this Article ارسل هذه المادة
You may also like to read ويمكنك ايضا ان تقرأ |





October 22nd, 2007 at 4:12 pm تشرين الاول / اكتوبر 22nd ، 2007 في الساعة 4:12
hi there, مرحبا هناك ،
what happens if the JVM applet engine uses different classloaders to load the classes ? ماذا سيحدث اذا jvm بريمج يستخدم محرك classloaders مختلفة لتحميل الطبقات؟ there will be 2 different instances of the classes, right ? 2 ستكون هناك حالات من مختلف الطبقات ، أليس كذلك؟
BR, برازيلي ،
~A أ ~
October 22nd, 2007 at 11:12 pm تشرين الاول / اكتوبر 22nd ، 2007 في الساعة 11:12
As far as I know both IE & Firefox loads the applets using the same classloader. وحسب علمي على حد سواء. فايرفوكس & الاحمال فإن تطبيقات باستخدام نفس classloader.
With different classloaders, yes. Classloaders مختلفة ، نعم.