E
E
everv0id2016-01-12 11:36:11
Java
everv0id, 2016-01-12 11:36:11

Implementing server-push in a java application?

Hello.
There was a need to implement server-push in a Java application (running on Tomcats 6 and 7, Java 1.7.0_21) to push server notifications to the client. I looked towards the Atmosphere Framework, but there are practically no intelligible examples of use and even tutorials - it is not clear how to implement the technology into an existing project. Therefore, thoughts are already appearing to implement everything according to JSR-356 by hand without any frameworks. Accordingly, the question to the community is: how would you solve the problem of introducing server-push notifications into an existing application?
There is, of course, a way with ajax requests on timeout and a message queue on the server, but we decided to leave it as a last resort, and first try to do it "correctly", i.e. via websocket.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2016-01-12
@aol-nnov

> Therefore, thoughts are already appearing to implement everything according to JSR-356 by hand
, but there is already some kind of implementation,
you just need to look - after all, JSR-356 did not appear yesterday - I think there are already several people who want to implement it :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question