Many Thanks Huzaifah, For my application idea, your information certainly would have met my requirement and I found your message very helpful and I am very appreciative. In the past however I have done a system work around in an ill-conceived commercially available system architecture and detected another system work in another system architecture. In all good conscious I was not happy with the system work around I did. But it was at the end of a project. All in the space of one two months. Coming across one system work around in an application developers career is one too many. So for this reason I will try and apply the chat application first as suggested by Yasser. If that doesn't meet my requirement then I will try your suggestions.
Regards zahid On Fri, 22 Nov 2019 at 03:27, M Huzaifah <mhuzaifah.i...@gmail.com> wrote: > 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. > > >