O'Reilly logo

Oracle ADF Faces Cookbook by Amr Gawish

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using WebSockets for more interactive applications

WebSocket is a new protocol that was standardized in 2011 and provides two-way communication channels over a single TCP connection. It is designed to work with web browsers and web servers, and it has native JavaScript APIs in all modern browsers. The WebSocket protocol is totally independent from the HTTP protocol, and it can have a secured and unsecured layer just like the HTTP protocol. Starting with Weblogic 12c, it supports the WebSocket APIs fully, and we are going to use it in this recipe to create a small, anonymous chat client.

There is no model for this project, and this is a separate application from previous recipes. So, you should grab the ADFFacesWebSockets application from the Git ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required