- Taschenbuch: 310 Seiten
- Verlag: O'Reilly & Associates; Auflage: 1 (28. Dezember 2009)
- Sprache: Englisch
- ISBN-10: 0596158041
- ISBN-13: 978-0596158040
- Größe und/oder Gewicht: 17,8 x 1,8 x 23,3 cm
- Durchschnittliche Kundenbewertung: 2 Kundenrezensionen
- Amazon Bestseller-Rang: Nr. 174.565 in Fremdsprachige Bücher (Siehe Top 100 in Fremdsprachige Bücher)
RESTful Java with JAX-RS (Englisch) Taschenbuch – 28. Dezember 2009
Kunden, die diesen Artikel angesehen haben, haben auch angesehen
Es wird kein Kindle Gerät benötigt. Laden Sie eine der kostenlosen Kindle Apps herunter und beginnen Sie, Kindle-Bücher auf Ihrem Smartphone, Tablet und Computer zu lesen.
Geben Sie Ihre E-Mail-Adresse oder Mobiltelefonnummer ein, um die kostenfreie App zu beziehen.
Mehr über den Autor
Über den Autor und weitere Mitwirkende
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.
Welche anderen Artikel kaufen Kunden, nachdem sie diesen Artikel angesehen haben?
In diesem Buch(Mehr dazu)
"RESTful Java" startet mit der üblichen Selbstbeweihräucherung, die den Auftakt von nahezu allen Framework-Büchern bildet und in etwa wie folgt lautet: "Bevor es diese Technologie gab, war die Software-Welt schwerfällig, fade und hoffnungslos umständlich, aber seitdem vorliegendes Framework das Licht der Welt erblickte, schreiben sich die Programme nahezu wie von selbst!"
Arbeitet man sich dann durch besagtes Framework, stellt man immer wieder fest, daß sich die Software leider ganz und gar nicht wie von selbst entwickelt, sondern daß auch diese Technologie genauso mit Arbeit verbunden ist und Einschränkungen unterliegt, wie alle anderen Frameworks auch. Nichtsdestotrotz finde ich RESTful Web-Services sehr elegant und leicht zu entwickeln, wohingegen ich mich mit SOAP-basierten Web-Services und der damit zwangsläufig verbundenen XML-Hell nie so recht anfreunden konnte. Die REST-Architektur gefällt mir dagegen ausgesprochen gut, und die Entwicklung mit der JBoss-Implementierung RESTEasy fiel wesentlich einfacher aus als erwartet.
Das Buch von Bill Burke liest sich, genauso wie sein Vorgängerwerk "Enterprise JavaBeans 3.Lesen Sie weiter... ›
Die hilfreichsten Kundenrezensionen auf Amazon.com (beta)
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.
While both Jersey and RESTeasy, two popular implementations of JAX-RS, do provide fairly helpful user guides, the specification provides a wide-ranging set of capabilities and neither sufficiently conveyed the breadth of these, in my opinion. But now there is a new resource in the form of Bill Burke's RESTful Java with JAX-RS. Bill is the creator of JBoss' RESTeasy framework so he knows the specification well and it shows in this book.
The book explores building a RESTful web app from the ground up and includes a full workbook in the second section with complete examples. The examples are included with the download of RESTeasy, which was not immediately obvious on my first read through. Each chapter of the workbook matches a chapter from earlier in the book giving the reader the opportunity to try out the ideas they've just read about. This feels like a good format for a book like this -- a motivated reader can charge through the content of the book to get a cohesive view of the API, while not getting too bogged down in the details of setting up each example.
Some of the most interesting material that's harder to get from the users guides and online tutorials is covered in the material on content negotiation in chapter eight and content marshalling in chapter six. The content marshalling chapter not only explains the built in marshalling capabilities and the use of JAXB but also details how to add in custom handlers. While I don't know how much this will get used in practice given the ubiquity of JSON and XML, I suspect for those few who really need to supply their own data formats or who want to replace the built-in handlers will be more than happy to see it covered here.
I have to say that I felt like some items were not covered which would have been useful. For instance, I would love to see some examples of integrating with existing web apps and frameworks. It's not immediately clear what the best route is here and searching online turns up few, if any, best practices or war stories. Similarly it seems that a section on testing REST-based applications would have been called for, even if it isn't strictly part of the specification. I guess the book tries to stick to outlining JAX-RS within the context of the spec, but this feels to me a bit too limiting in scope. In general, some guidelines on best practices, common integration and usage scenarios and other "real world" content would have been a welcome addition.
Despite these minor complaints, this book is clearly a must have if you're venturing down the path of RESTful Java development. The existing documentation is far too-limited and this book is an easy and even enjoyable read.
The book then covers the complete JAX-RS standard, while keeping the language straightforward so that everyone can understand it. There is plenty of code to learn from and as in his EJB book, the author have devoted the last half of the book to full working examples. These are build with Maven (so they can work in any Java IDE) and covers a multitude of subjects, including Spring/EJB integration and unit testing with embedded Jetty.
Bill obviously knows his business (even if he admits to being a long standing Corba fanboy) and overall I find the book to be concise, detailed, and well written. However it only gets 4 stars as some of the subjects seams a little rushed (such as JAXB integration and its REST introduction).
You can skip chapter 1 if you want to see JAX-RS in action, and go straight to chapters 2, 3, 4 and 6, as I did.
The JAX-RS spec is very well covered in this book. Ideally, I would like to see the REST Client API from Jersey covered as well (in addition to that of RESTEasy).
(Update): REST Client API has been standardized in JAX-RS 2.0 which will be covered by the 2nd edition of this book (to be published in November 2013), according to the author.
This book is a fresh rediscovery of [...] and the web
The introductory chapter gives an overview of what REST is, and how JAX-RS specifications address this philosophy.
Each chapter describes part of JAX-RS accurately and clearly and the snippets of code presented are properly explained.
The last chapters present the integration with the most popular JEE frameworks: EJB and Spring and a really helpful explanation about the available tools to perform test of Restful applications
For each chapter of theory, in the second part of the book, a workbook, there is a chapter with examples. Such organization allows you to get an overview of the API without having to constantly jump pages containing examples and yet is simple to move from theory to practice going to the matching section of the workbook.
Following the directions of the workbook, you can easily download the source code which contains plenty of well documented examples.
The only fact to be moved is the explicit statement that the code as presented should not be used in production (not for copyright issues): a novice can only imagine what its limits are but without having an alternative.
It is well written, focused on the subject and easily understood.
This book is an excellent tutorial and a quick reference.