From the course: Learning Java Enterprise Edition
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
WebSocket introduction - Java EE Tutorial
From the course: Learning Java Enterprise Edition
WebSocket introduction
- [Narrator] In this video, we're going to look at another new that was introduced in Java SE7, and that is the WebSocket API. WebSockets are used in the presentation layer and plays a similar role as JAX RS in the sense that it provides data to the client which it then displays to the end user. WebSockets open a bi-directional conversation over a TCP connection between a web browser and a web server. Every website that connects provokes the creation of a session on the server, and on very busy sites, this could be thousands or even millions of sessions. The connection is kept open for the duration of the session which allows a very quick communication. This paves the way for interactive website features such as the live map we have seen in the admin section of the Carver Tracker website. WebSockets are often used with HTML5 and JavaScript Technologies and combine to enable web applications to deliver a richer user experience. The Websocket Protocol has two parts to it: A Handshake…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.