The Source for Java Technology Collaboration

Home » java.net Forums » JDK » 6uN Early Access

Thread: Inter-Applet Communication

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: May 21, 2008 3:48 PM by: ktcoxn Threads: [ Previous | Next ]
ktcoxn

Posts: 3
Inter-Applet Communication
Posted: May 13, 2008 2:34 PM
  Click to reply to this thread Reply

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?

javakoe

Posts: 2
Re: Inter-Applet Communication
Posted: May 14, 2008 1:48 PM   in response to: ktcoxn
  Click to reply to this thread Reply

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

Posts: 3
Re: Inter-Applet Communication
Posted: May 21, 2008 3:48 PM   in response to: javakoe
  Click to reply to this thread Reply

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.




 XML java.net RSS