Joke Collection Website - Blessing messages - How to realize OA internal SMS?

How to realize OA internal SMS?

Why open a new post? J2EE is multithreaded.

The solution is as follows:

First, when the user logs in, go to the database to check whether there is unread information. If used, a form prompt will pop up. it is quite easy to do so. Then the next step is to receive information online. Because it is a B/S structure, it is more troublesome to receive information. You can only write a timer in JAVASCRIPT and go to the server to get data every once in a while. You can use AJAX to get data, or you can use page submission to achieve it. If you find something unread, a table prompt will pop up.

Secondly, I know that there is a technology called JMS, which is also used to realize communication, but I don't know how to use it.

Thirdly, another solution is to combine your own C/S communication with your own OA. It is not difficult to make a communication. Personally, I think the third scheme is the best.