I am interested in doing a stackoverflow type notification on my website. I know there are a few questions on this topic, but all of them are concerned with the client side css and ajax.
I would like to know the best way to handle things on the server side (jsp). I want to notify all users currently using the system that the server will be going down. So I can make a db with all the necessary information, and when the record is set to active, out comes the notification div. First question, is this the best way to handle this portion?
The next part is, how do I actually get the notification out. The only solutions I have thought of are to be polling from the web site with jQuery or to only check when pages are loaded. I know there are some push like things (comet, reverse ajax) but have no experience with these. Would these be useful in this situation, or would they be overkill? Is polling (pretty simple) the best way to go?