Currently, I have a java application running on one PC and a web application consisting of javascript, html, and bootstrap hosted on a tomcat server on another PC.
The java application includes two variables within a class - distance and time - that are continuously changing at a certain frequency. My goal is to plot a line graph representing the speed of these values in a browser opened on a different PC by a user. Ideally, the graph should resemble those found in stock market analyses.
While I have some basic knowledge of java, I am relatively inexperienced with web programming. What would be the best way to transmit the data from my java application to the web application?
After researching this topic, I came across confusing terms such as web services, ajax, json, servlets, etc. This has made the process more overwhelming than helpful.
Could you offer guidance on how to proceed in this situation? The html page currently only consists of a single panel where I intend to display the graph.