The DataHub lets you put live data
into Java applets that are embedded in a web page. When the
someone visits the web page, the Java applet attaches to the
DataHub and the applet starts to receive live data updates
without refreshing the page.
Here is an overview of how your code gets live data from
the DataHub to a web page.
The Browser Loads the HTML
- The web browser follows the URL to the web
server.
The web server returns the HTML code for the page.
The Browser Loads the Java code
- The browser reads the HTML code and encounters
the embedded APPLET code.
- The APPLET code instructs the
browser to go back to the web server and load the Java
code.
The web server provides the Java code.
The Browser runs the Java code
- The browser runs the Java code (in the Java
Virtual Machine).
- The Java code instructs the Java VM to connect
to the DataHub running on the server computer. From
that point on, all communication is between the Java
applet and the DataHub only. The web server is not
involved.
In the browser, the Java code tells the Java
plug-in how to display the information coming from the
DataHub.