O'Reilly logo

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON by Bhakti Mehta, Masoud Kalali

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

Summary

This chapter covered two real life examples of RESTful Web Services. At the beginning, using the event notification sample, we demonstrated how to use Server-sent Events with asynchronous processing of servlets and how the server can push data to the clients as and when the events occur.

Continued on, in the library application we covered the JAX-RS API and also the custom message body readers, writers. We also demonstrated the use of JSON-P API. The library application showed how to use WebSockets from a JavaScript client and send messages to WebSockets endpoints.

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