Note that there are some explanatory texts on larger screens.

plurals
  1. POJava : how to communicate from localhost Java desktop application to Java Applet?
    primarykey
    data
    text
    <p>I would know if there is a way to make a Java desktop application to communicate with an applet, in order to call Javascript functions from the desktop app (through applet).</p> <p><strong>The context :</strong></p> <p>In one hand, I'm having an ExtJS application (full-AJAX), which is located on a remote server. In the other hand, a desktop Java application (netbeans application), which is resident (indeed).</p> <p><strong>What I would do :</strong></p> <p>Each time one of the apps is used, it sends events &amp; data to the other app.</p> <p>After a few research, I saw interesting posts <a href="https://stackoverflow.com/questions/4519741/how-can-a-desktop-application-communicate-with-a-web-application">here</a> and <a href="https://stackoverflow.com/questions/7278626/javascript-to-java-applet-communication">here</a>, and also an answer on <a href="https://stackoverflow.com/questions/2622377/inter-applet-communication">how to communicate between applets</a> (see also <a href="https://stackoverflow.com/questions/11341692/how-to-share-data-between-applets-in-the-same-web-page">here</a>).</p> <p>The question is not about how to do cross-domain from the applet to the destktop app (see <a href="https://stackoverflow.com/questions/1908083/java-and-crossdomain-xml">over there</a> and <a href="http://weblogs.java.net/blog/2008/05/28/java-doodle-crossdomainxml-support" rel="nofollow noreferrer">here</a>), but as said in the beginning how to communicate from a desktop java app to the javascript.</p> <p><strong>Notes</strong></p> <p>The webapp (ExtJS) is based on a remote server, the applet too. I can locate the applet locally, but it implies to deploy a local webserver.</p> <p>The desktop app is very heavy, so I cannot convert it in an applet format.</p> <p>I put the "reverse-AJAX" tag because it is the global concept of what I would do.</p> <p>If all this is possible without an applet (<em>no Flash please</em>), it's okay too.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload