WebSocket Programming with Java EE

WebSocket Programming with Java EE

1h 29mIntermediate2017-06-13

Authors

Alex Theedom

Alex Theedom

Enterprise Developer, Published Author, Trainer

Course details

WebSocket programming is a new paradigm in web development that takes the interactive web experience to a new level of richness. The WebSocket API in Java EE offers a powerful lifecycle model and annotation-driven configuration, and is an ideal solution for the development of interactive and dynamic websites. In this course, learn how to implement WebSocket functionality end to end in a client and server application.

Join Alex Theedom as he guides you through the lifecycle of a WebSocket connection, and discusses the Java EE WebSocket programming methodologies: annotation and programmatic. He shows how to secure and encrypt WebSocket endpoints and use simple techniques to test their implementation. In addition, he explains how to integrate the JSON-processing API and build a front-end and server based WebSocket client.

Learning objectives
WebSocket usage
WebSocket lifecycle and topology
WebSocket front end and back end
WebSocket methodologies
Annotation methodology and programmatic methodology
Coding a client API
Using the JSON Processing API
Coding the encoder and decoder
Building the front end
Testing WebSocket endpoints

Skills covered

Java EEBack-End Web DevelopmentJavaFull-Stack Web DevelopmentOracleWeb DevelopmentOne-Off

Concepts

0. Introduction

  • 01 - Welcome
  • 02 - What you should know
  • 03 - How to use the exercise files
  • 04 - Challenges

1. Introduction to WebSocket

  • 05 - Rise of WebSocket
  • 06 - WebSocket usage

2. WebSockets Front End and Back End

  • 07 - WebSocket lifecycle and topology
  • 08 - WebSocket front end and back end

3. Project Application and Structure

  • 09 - Introduction to the project application
  • 10 - Deployment

4. Java EE WebSocket API

  • 11 - WebSocket methodologies
  • 12 - WebSocket functionality
  • 13 - Annotation methodology
  • 14 - Implement WebSocket lifecycles
  • 15 - Configure the session
  • 16 - Lifecycle logic
  • 17 - Programmatic methodology
  • 18 - WebSocket client API
  • 19 - Code a client API
  • 20 - ✓ Challenge - Code programmatic endpoint
  • 21 - ✓ Solution - Code programmatic endpoint

5. Messages and Encoding

  • 22 - Use the JSON Processing API
  • 23 - Encoders and decoders
  • 24 - Code the encoder
  • 25 - Code the decoder
  • 26 - ✓ Challenge - Ping pong endpoint
  • 27 - ✓ Solution - Ping pong endpoint

6. Build Web Front End

  • 28 - WebSocket web front end
  • 29 - Build the front end

7. WebSocket Security

  • 30 - Secure WebSocket endpoint
  • 31 - WebSocket security
  • 32 - WebSocket encryption

8. Testing WebSocket Endpoints

  • 33 - How to test WebSocket endpoints

Conclusion

  • 34 - Next steps
40,000 Toman