How To Communicate Between Java Applets Javaアプレット間の通信方法について
Communication between Java applets has been an interesting topic from the early days of Java. Javaアプレット間の通信され、初期の頃から、興味深いトピックのJavaです。 There are several esoteric ways to communicate like using Javascript as a bridge.難解なコミュニケーションには、いくつかの方法を使用してのJavaScriptとの架け橋としてのようにします。 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.この5月に役立つアプレットが別々のマシンの場合、または別のJVMのように2つのアプリケーションサーバー/ Tomcatのインスタンスです。
Filed under提出されて Enterprise Softwareエンタープライズソフトウェア , 、 Headline Newsニュースの見出し , 、 How Toどのように , 、 J2EE J2EEの , 、 Java Software Javaソフトウェア , 、 Javascript JavaScriptの , 、 Open Source Softwareオープンソースのソフトウェア , 、 Programmingプログラミング , 、 Tech Note技術のノート , 、 Webウェブ , 、 Web Services Webサービス | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |





October 22nd, 2007 at 4:12 pm 2007年10月22日は4:12 pmの
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, br 、
~A 〜する
October 22nd, 2007 at 11:12 pm 2007年10月22日は11:12 pmの
As far as I know both IE & Firefox loads the applets using the same classloader.私の知る限りでつまり& Firefoxの両方を使用して、同じクラスのアプレットが読み込まれる。
With different classloaders, yes.異なるclassloaders 、はい。