Chapter 14. Using WebSockets with EJB 3
This chapter covers
- The basics of WebSockets
- Integrating WebSockets with Java EE
- Using annotated and programmatic endpoints
In this chapter we’ll delve into an exciting new technology that was added to Java EE 7 to support HTML5: WebSockets. WebSockets are raw sockets that support true full-duplex communication between the web browser and back-end server. With WebSockets, you can push data to the web browser from the server without depending on hacks or having the client poll the server.
14.1. Limits of request–response
In the traditional HTTP model, the client browser opens a connection to an HTTP server and requests an operation to be performed, such as GET, POST, PUT, DELETE, and so on. The HTTP server ...
Get EJB 3 in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.