Skip to main content

Inter-Applet Communication

2 replies [Last post]
ktcoxn
Offline
Joined: 2008-05-13
Points: 0

I am currently working through an inter-applet communication issue. I would like ideally to have some sort of way for an arbitrary number of applets on a page to communicate through listeners. In earlier versions of the Java plugin there were no really nice ways to do this (and believe me, my teammates and I have gone through several different ideas). In 6u10 it looks as if the situation may be getting worse, with the potential for multiple JVMs for different applets. Other than RMI, are there any ways that inter-applet communication may be done both before and after 6u10?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
javakoe
Offline
Joined: 2004-03-04
Points: 0

Can't you communicate via LiveConnect?
Or use Applet.getAppletContext().getApplets()?

http://en.wikipedia.org/wiki/LiveConnect
http://www.mozilla.org/js/liveconnect/
http://www.google.com/search?q=LiveConnect

ktcoxn
Offline
Joined: 2008-05-13
Points: 0

LiveConnect is definitely one option, but that means that objects have to be serialized through JavaScript (as far as I understand it). Applet.getAppletContext().getApplets() is interesting, because each applet may have its own classloader, depending on the plugin, and with the new plugin potentially spawning more than one JVM for applets it gets even more interesting.