Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Oracle WebLogic Server 12c: Developer's Guide

You're reading from   Getting Started with Oracle WebLogic Server 12c: Developer's Guide If you've dipped a toe into Java EE development and would now like to dive right in, this is the book for you. Introduces the key components of WebLogic Server and all that's great about Java EE 6.

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781849686969
Length 374 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (18) Chapters Close

Getting Started with Oracle WebLogic Server 12c: Developer's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Overview of WebLogic Server 12c and Related Technologies FREE CHAPTER 2. Setting Up the Environment 3. Java EE Basics – Persistence, Query, and Presentation 4. Creating RESTful Services with JAX-RS 5. Singleton Bean, Validations, and SOAP Web Services 6. Using Events, Interceptors, and Logging Services 7. Remote Access with JMS 8. Adding Security 9. Servlets, Composite Components, and WebSockets 10. Scaling Up the Application 11. Some WebLogic Internals Index

Using WebSockets


The WebSocket protocol, defined by IETF's RFC 6455, is a TCP-based protocol that enables two-way communication between a web page running on a browser and a server; even though it uses a single socket connection, both ends of the channel can send and receive information simultaneously, thanks to the full-duplex nature of the protocol. This connection is controlled by your application's code, unlike the HTTP protocol, where the browser itself manages the connections. This control is possible by the use of W3C's WebSocket API, which declares an interface to use the protocol.

With this feature we can directly communicate with a server in real time, bringing a whole new level of possibilities and sophistication to what can be accomplished on web applications.

Tip

To check which browser version has WebSocket support, access http://caniuse.com/websockets and look for the Current line on the table.

Let's see how to implement and test a really simple WebSocket that receives a message...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime