Skip to Main Content
Developing Middleware in Java EE 8
book

Developing Middleware in Java EE 8

by Abdalla Mahmoud
June 2018
Intermediate to advanced content levelIntermediate to advanced
252 pages
6h 45m
English
Packt Publishing
Content preview from Developing Middleware in Java EE 8

Server-sent events

The classic model of HTTP communication is the single-request-response model: the client issues a request to the server, the server sends a response, the connection gets closed, that's all! Each HTTP connection serves exactly one response.

In some scenarios, the opposite of this model is required—the server sends some data to the client, without a special request from the client. This is very common in notification systems, such as social media notification pop-ups, or in applications such as chatting. When the client has a new notification or a chatting message, the server should redirect it to the client.

It is technically impossible for the server to initiate a connection to the client; therefore, some techniques were ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Java EE Development with WildFly

Mastering Java EE Development with WildFly

Luca Stancapiano

Publisher Resources

ISBN: 9781788391078Supplemental Content