Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON

Improving your productivity by making the most of Java EE 7's capabilities is made easy and practical with this book. It's the perfect guide to developing RESTful Services utilizing powerful new technologies.
Preview in Mapt

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON

Bhakti Mehta, Masoud Kalali

Improving your productivity by making the most of Java EE 7's capabilities is made easy and practical with this book. It's the perfect guide to developing RESTful Services utilizing powerful new technologies.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON Book Cover
Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON
$ 23.99
$ 16.80
Developing RESTful Web Services with Jersey 2.0 Book Cover
Developing RESTful Web Services with Jersey 2.0
$ 20.99
$ 14.70
Buy 2 for $31.50
Save $13.48
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781782178125
Paperback128 pages

Book Description

As the technology landscape moves focus towards smaller devices, the need for building scalable, flexible, lightweight, and real-time communications-based applications grows. HTML 5 and Java EE 7 provide a new synthesis of technologies that demonstrate tremendous scope and potential in areas of device independence, asynchronous communication, interoperability, and portability.

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON is a practical, hands-on guide that provides you with clear and pragmatic information to take advantage of the real power behind HTML5 and Java EE technologies. This book also gives you a good foundation for using them in your applications.

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON looks at the different HTML5-based Java EE 7 API, and takes a deep dive into the individual areas of technologies to cover basic to advanced concepts, and also provides best practices for each API. You will also learn how to build a REST-based Event Notification Application using the Twitter API, tying all the different technologies together that we will cover. You will also take a look at integrating different Java EE APIs to build a Library Application. If you want to take advantage of using the new HTML5 technologies and Java EE 7 platform, then this is the book for you. You will learn everything you need to know to build portable RESTful Web Services with JAX-RS 2.0, Web Sockets, JSON, and Server-Sent Events.

Table of Contents

Chapter 1: Building RESTful Web Services Using JAX-RS
Understanding REST
RESTful Web Services
Verbs in REST
Introduction to JAX-RS
Summary
Chapter 2: WebSockets and Server-sent Events
The programming models
Emerging standards
Java EE and the emerging standards
Comparison and use cases of different programming models and standards
Summary
Chapter 3: Understanding WebSockets and Server-sent Events in Detail
Encoders and decoders in Java API for WebSockets
The Java WebSocket Client API
Sending different kinds of message data: blob/binary
Security and WebSockets
Best practices for WebSockets based applications
Server-sent Events
Best practices for applications based on Server-sent Events
Summary
Chapter 4: JSON and Asynchronous Processing
Producing and parsing JSON documents
Introducing Servlet 3.1
New features in JAX-RS 2.0
Asynchronous processing in EJB 3.1 and 3.2
Summary
Chapter 5: RESTful Web Services by Example
Event notification application
The library application
Summary

What You Will Learn

  • Develop RESTful Web Services using the JAX-RS 2.0 API
  • Build applications with the JavaScript and Java Client API for WebSockets and Server-Sent Events
  • Understand security and fault tolerance with WebSockets and Server-Sent Events
  • Produce, parse, and manipulate JSON data with the help of standard JSON API
  • Cover best practices in building applications with WebSockets, Server-Sent Events, and JAX-RS 2.0
  • Learn the aspects of asynchronous programming to improve scalability

Authors

Table of Contents

Chapter 1: Building RESTful Web Services Using JAX-RS
Understanding REST
RESTful Web Services
Verbs in REST
Introduction to JAX-RS
Summary
Chapter 2: WebSockets and Server-sent Events
The programming models
Emerging standards
Java EE and the emerging standards
Comparison and use cases of different programming models and standards
Summary
Chapter 3: Understanding WebSockets and Server-sent Events in Detail
Encoders and decoders in Java API for WebSockets
The Java WebSocket Client API
Sending different kinds of message data: blob/binary
Security and WebSockets
Best practices for WebSockets based applications
Server-sent Events
Best practices for applications based on Server-sent Events
Summary
Chapter 4: JSON and Asynchronous Processing
Producing and parsing JSON documents
Introducing Servlet 3.1
New features in JAX-RS 2.0
Asynchronous processing in EJB 3.1 and 3.2
Summary
Chapter 5: RESTful Web Services by Example
Event notification application
The library application
Summary

Book Details

ISBN 139781782178125
Paperback128 pages
Read More

Read More Reviews

Recommended for You

Java EE 7 Developer Handbook Book Cover
Java EE 7 Developer Handbook
$ 35.99
$ 25.20
Java 7 Concurrency Cookbook Book Cover
Java 7 Concurrency Cookbook
$ 29.99
$ 21.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
RESTful Java Patterns and Best Practices Book Cover
RESTful Java Patterns and Best Practices
$ 16.99
$ 11.90
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80