Hi, You should use stream mecanism for that case. What i've done, i used JMS, message-broker, which mean the browser always listen to message-broker server using websocket (STOMP,AMQP,etc). When backend push message to the broker server, browser automatically receive and render the message to the browser. I use ActiveMQ over MQTT, and render the message using javascript in browser.
You can find another stream mecanism or reactive application example out there. Regards On Fri, Nov 22, 2019, 10:06 Zahid Rahman <zahidr1...@gmail.com> wrote: > Hi, > > I have an admin screen (jsp) where the administrator updates values i.e. > current weather temperature, cricket , football score, death counter > showing people killed by knife crime in a city, natural causes , car > accidents etc. > > > I have at least two users who are looking at the current temperature or > game score etc. (JSP). > > Once the administrator updates the values , the data viewed by the two > users > In their browser is now stale data , due to the fact the web browser is > based on a stateless pull model. > > Is there an example app or maven archetype which shows how I can update > or refresh the views (JSPs viewed in browser) in all the user sessions > [views ] from inside the running application server using the struts2 > framework. >