- [Narrator] So, how do you get on with this task?…Well, let's have a look at my solution.…To start, I created a client and a server.…I pitched a PongServer and a PingClient…and the corresponding endpoints.…PongServerEndpoint and PingClientEndpoint.…The PingClient is responsible for sending the Ping…and the Pong messages.…So, in part one it sends a Pong message…by calling their sendPong method…and the server handles the Pong message…in the Pong message handler.…
Then the Ping client sends a Ping message,…using the sendPing method,…which is automatically responded to by the server…with a Pong message.…And that message is picked up by the Pong message handler…in the client endpoint.…The message payload is echoed back to the client.…Okay, so let's execute this code and see it in action.…First of all, I execute the server.…Then, the client.…The first thing the client will do…is to send a Pong message that the server will pick up…and the client is sent a Pong message…and you can see that the server…has picked up the Pong message.…
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.
- 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
Skill Level Intermediate
Java Platforms Compared: SE vs EE vs MEwith Peggy Fisher25m 38s Intermediate
1. Introduction to WebSocket
2. WebSockets Front End and Back End
3. Project Application and Structure
4. Java EE WebSocket API
5. Messages and Encoding
6. Build Web Front End
7. WebSocket Security
8. Testing WebSocket Endpoints
Next steps1m 37s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.