Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

November/2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
171819 20212223
24252627282930
       

[ Archives News
for 'Java Technology' ]

home > news > java technology > web sockets and html5 in glassfish

Web Sockets and HTML5 in Glassfish

It's been several months since my last blog! I have recently re-joined the Glassfish team at Oracle and I'm currently looking at Web tier technologies like Web sockets and HTML5. In this blog, I'd like to show you a simple Web application in which you can control an HTML5 video object remotely. The basic idea is to intercept video events like 'play', 'pause' and 'seeked' and remote them using Web Sockets to control another player. Although there may be some use cases for an application like this (such as coaching), the real objective of this exercise is to show the low latency of the Web sockets implementation in Glassfish. So let's get started! Here is a screenshot of the application: A Web socket is nothing more than a socket connection that can be established between a (modern) Web browser and a Web container. It provides a low-latency, bi-directional communication "parallel" to the HTTP channel. It is Ajax/Comet on steroids. No hacks, no jumping through loops, nothing. It has the potential of redefining what we understand as a Web application lifecycle given it's low latency and always connected characteristics (but more about this on a future blog). Our Web application comprises of a single page and some JavaScript code. We use JSF 2.0 facelets to define the main page: ... Let's share this video:  The tag h5:video ...


Date: October, 06 2010
Url: http://www.java.net/blog/spericas/archive/2010/09/29/web-sockets-and-html5-glassfish


Others News

©2002-2019Java-Virtual-Machine.net https://mobirise.com/ | free icon fonts | easy free website builder | easy website builder software | top free website builder