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

More Information
  • 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

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.

  • Learning about different client/server communication models including but not limited to client polling, Server-Sent Events and WebSockets.
  • Efficiently use WebSockets, Server-Sent Events, and JSON in Java EE applications
  • Learn about JAX-RS 2.0 new features and enhancements
  • Improve scalability with asynchronous processing


Page Count 128
Course Length 3 hours 50 minutes
ISBN 9781782178125
Date Of Publication 14 Oct 2013


Masoud Kalali

Masoud Kalali is a Consulting Member of Technical Staff at Oracle. He is the author of Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON published in 2013 and GlassFish Security books published in 2010. He is the author of numerous articles and quick references from Java.Net to Dzone.

Since 2001, when he started working in different software development roles, he has been blessed enough to work on multiple loosely coupled architecture for high throughput message-based systems with JMS at heart and the rest of the components forming the stops around the JMS as the main messaging bus.

Performance analysis and performance consulting on architecture, design, code, and deployment configuration is another challenge he has spent some time working on.

RESTful services and use of RESTful endpoints for data integration is one of the other practices he worked on for data integration for industry leading software systems, IJC and TIBCO Spotfire, during his work at ChemAxon.

Masoud has worked on security integration as another area, specifically in integration OpenSSO with a solid SOA framework used for developing BPEL flow oriented software

At his current position at ORACLE he works as the lead engineer in the design and development of application server and PaaS infrastructure of the ORACLE cloud service on top of both OVM/OVAB and Nimbula virtualization providers.

Masoud’s Twitter handle is @MasoudKalali if you want to know what he is up to.

Bhakti Mehta

Bhakti Mehta is the author of Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON, Packt Publishing, published in 2013. She has more than 13 years of experience in architecting, designing, and implementing software solutions on top of Java EE and other related technologies. She is passionate about open source software development and has been one of the founding members of GlassFish Open Source Application Server.

Bhakti has a Bachelor's degree in Computer Engineering and a Master's degree in Computer Science. Her areas of research include architecting solutions for resiliency, scalability, reliability, and performance with respect to server-side technologies, web services, and cloud applications.

Currently, Bhakti is a Senior Software Engineer at Blue Jeans Network. As part of her current role, she works on developing RESTful services that can be consumed by ISV partners and the developer community. She also works on the backend infrastructure and is responsible for performance, scalability, and reliability of the services.Bhakti is a regular speaker at different conferences and has authored numerous articles, blogs, and tech tips at different portals such as and Dzone. In her spare time, she enjoys kickboxing, traveling, and reading.

Bhakti's tweets can be followed at @bhakti_mehta.