title: How to send notification to all logged in users
body: <p>I've got a Spring MVC, Spring Thymeleaf, Spring Security and Hibernate on MySQL application. My task is to notify to all currently logged in users if there is new data persisted for the page they are viewing so that the users can refresh and get a new set of data. </p>
  
  <p>I was guessing that I could store all the logged in users in an ApplicationScope session and then notify them somehow. But I've never done this before and not sure how safe it would be.   </p>
  
  <p>Can anyone suggest any idea on how this could be done ?</p>