RESTful Java With JAX-RS (英語) ペーパーバック – 2009/11/17
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
Learn how to design and develop distributed web services in Java using RESTful architectural principals and the JAX-RS specification in Java EE 6. With this hands-on reference, you'll focus on implementation rather than theory, and discover why the RESTful method is far better than technologies like CORBA and SOAP.
It's easy to get started with services based on the REST architecture. RESTful Java with JAX-RS includes a technical guide that explains REST and JAX-RS, how they work, and when to use them. With the RESTEasy workbook that follows, you get step-by-step instructions for installing, configuring, and running several working JAX-RS examples using the JBoss RESTEasy implementation of JAX-RS.
- Work on the design of a distributed RESTful interface, and develop it in Java as a JAX-RS service
- Dispatch HTTP requests in JAX-RS, and learn how to extract information from them
- Deploy your web services within Java Enterprise Edition using the Application class, Default Component Model, EJB Integration, Spring Integration, and JPA
- Discover several options for securing your web services
- Learn how to implement RESTful design patterns using JAX-RS
- Write RESTful clients in Java using libraries and frameworks such as java.net.URL, Apache HTTP Client, and RESTEasy Proxy
Bill Burke is a Fellow at the JBoss division of REd Hat Inc. A long time JBoss contributor and architect, his current project is RESTEasy, RESTful Web Services for Java.
The book is full of examples, which is great to develop a web service quickly, but the author often did not explain why he chose to develop his services one way versus another. This lack of an explanation can leave a developer guessing when he has a real-world issue to deal with that is slightly different from the examples.
The biggest drawback to the book is all of the typos. It really bothers me when I'm trying to understand new concepts, and the reference material that I'm using has significant typos. I hope that the author will correct those for the next release of the book.
Having written all of that, this book is probably the best (maybe only) book in the market right now that explains the REST from a Java perspective.
If you are new to REST, start with RESTful web services and then move on to this book. Since the author is part of the team that created RESTEasy, all source code examples use RESTEasy. I can certainly understand if other folks would like to have seen examples tailored towards Jersey (Sun's reference implementation) but I don't consider this to be a big drawback in any case since both frameworks are JAX-RS compliant, so moving from one to other shouldn't be too hard (with some caveats such as you will lose some of the features that are supported only by a given implementation such as @Formatted annotation by RESTEasy).
This is a very well written book. Highly recommended.