I prefer long polling, but my implementation has some problems. I send ajax request to servlet, that run infinity loop:
do {
// some process
} while (/* some process is not finished */);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need the Web messaging service.
There is a lot to configure so it doesn’t make sense to write all in an answer. Here is a tutorial