From the course: Java EE 8: JavaServer Faces JSF 2.3

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

WebSockets in JSF 2.3

WebSockets in JSF 2.3

From the course: Java EE 8: JavaServer Faces JSF 2.3

Start my 1-month free trial

WebSockets in JSF 2.3

- [Instructor] Now for the fun part, implementation. In this video I'll show you how to add WebSockets to your JSF 2.3 application. Now remember, this video and the entire course is running on GlassFish Version Five. While the WebSocket specification is part of the Java EE spec as a whole, some vendors have implementation-specific quirks that might require some extra configuration. WildFly, aka Jboss, runs the TRACE implementation. GlassFish runs an implementation generously donated by the gents from OmniFaces.org. Let's get on with it. Start in the web.xml. Let's open up my web.xml here. I'm going to enable WebSockets by adding a configuration parameter. It's going to reuse some existing markup, new context-param, and it's going to be called javax.faces.Enable underscore WebSocket underscore Endpoint. Let's save that. With that in place, let me show you a little of setup that I've prepared for the sake of…

Contents