© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. Scholtz, A. TijmsThe Definitive Guide to Jakarta Faces in Jakarta EE 10https://doi.org/10.1007/978-1-4842-7310-4_10

10. WebSocket Push

Bauke Scholtz1   and Arjan Tijms2
(1)
Willemstad, Curaçao
(2)
Amsterdam, Noord-Holland, The Netherlands
 

WebSocket support is represented by the <f:websocket> tag, the PushContext interface, and the @Push annotation, introduced in Jakarta Faces 2.3. It is built on top of the JSR-356 WebSocket specification, introduced in Jakarta EE 7. JSR-356 is even natively supported in Tomcat since 7.0.27 and in Jetty since 9.1.0.

In Mojarra, the <f:websocket> has an additional Jakarta EE dependency: JSON-P (JSR-353). In case you’re targeting ...

Get The Definitive Guide to Jakarta Faces in Jakarta EE 10: Building Java-Based Enterprise Web Applications 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.