Server side push to all sessions


I have a ScheduledExecutorService running server side to check a folder for notifications. I like to show in all the users logged in UIs a notifications dialog if they have something int that folder.

I am using VaadinSession.getCurrent().getAttribute(“user”) to get the user, but the problem is that it always return the last user that has logged in and its UI so i can only send notifications to that user.

Is there a way to access to every user logged in UI to show a notification dialog ??

Thanks !

Have a look at:

Thanks Marius, i am going to try the Broadcasting.