At the Java DEMOgrounds - Java EE 7 WebSocket Early Access
Posted
by Janice J. Heiss
on Oracle Blogs
See other posts from Oracle Blogs
or by Janice J. Heiss
Published on Thu, 4 Oct 2012 21:26:33 +0000
Indexed on
2012/10/05
3:45 UTC
Read the original article
Hit count: 239
/JavaOne 2012
Matula was previewing some Java EE 7 WebSocket early access features via a group drawing application that showcases the upcoming JSR 356, “Java API for WebSocket”, which is the API for building RESTful web services and Server-Sent Events, an HTML5 feature. He emphasized that this is supported in Jersey, the reference implementation for JAX-RS, as well.
“In this demo,” Matula explained, “I have a simple JavaScript front-end talking to the back-end deployed on GlassFish. It uses RESTful web services to get the list of drawings we have. I can create new drawings and the list is updated immediately using the Server-Sent Events, so the message is coming from the server to the client. Everything is getting updated live using WebSocket, which is the bi-directional communication new protocol in HTML5. This is using Project Jersey and Project Tyrus. Tyrus is the implementation of WebSocket protocol for Java. Jersey implements the RESTful APIs as well as the Server-Sent Events protocol.”
© Oracle Blogs or respective owner