Non è necessario possedere un dispositivo Kindle. Scarica una delle app Kindle gratuite per iniziare a leggere i libri Kindle sul tuo smartphone, tablet e computer.
Per scaricare una app gratuita, inserisci il numero di cellulare.
|Prezzo edizione digitale:||EUR 19,75|
|Prezzo Copertina Ed. Cartacea:||EUR 32,23|
Risparmia EUR 18,41 (57%)
RESTful Java Web Services Formato Kindle
|Nuovo a partire da||Usato da|
|Lunghezza: 258 pagine||Miglioramenti tipografici: Abilitato||Scorri Pagina: Abilitato|
Lettori e-Book KindleTablet Kindle Fire
Chi ha acquistato questo articolo ha acquistato anche
Le recensioni clienti più utili su Amazon.com (beta) (Potrebbero essere presenti recensioni del programma "Early Reviewer Rewards")
On the positive side, the book provides a decent introduction to four frameworks, Jersey, Restlet, RestEasy and the Rest plugin for Struts. The comparisons are useful, and in the Struts section the comparison to Ruby On Rails is also useful. In addition, I understand the JAX-RS standard a bit better after reading the book.
On the negative side:
* Lots of printed boiler plate code. Is there any reason to list full implementations of code on the page? Is there any reason to repeat large portions of it as it's discussed? Two of the frameworks implement the JAX-RS standard, and the *same code*, pages and pages of it, is printed in both chapters.
* A good deal of the code listings represent bad practice. Here, I referring to hand generated xml and json strings. The reader would have been better served with a chapter introducing ideas of binding objects to serializations, then a discussion of the various serialization libraries that are out there, especially JAXB and Json-lib. I would've discussed other content-types as well, especially xhtml.
* Where's WADL? A big gap with REST thus far is the lack of schemas, validation and type support. WADL is a step toward filling this hole. WADL isn't mentioned in this book, nor are the issues it's trying to solve. A discussion of JAXB would have fit nicely here as well.
In, summary, I'm aware that untyped languages like Ruby and Python are successfully employed in RESTful applications, but I was hoping that a book on RESTful Java would show how type safety and well defined APIs are compatible with the REST philosophy. This book doesn't provide that material, and I'm left to wonder why the authors chose Java as a language in the first place, as they leverage none of its strengths.
Shortly after it, I decided to read a book about Web Services in Java hoping to gain more current knowledge about the state of Java Web Services in Java EE 5 and the latest 6 editions. Contrary to the proverb "Don't judge a book by its cover", the cover of the book "RESTful Java Web Services" by Jose Sandoval seemed to have met my expectations. The title had all the words I was chasing understanding of (plus REST), and with its 234 pages seemed quite easy to digest. Entertained myself with the reading. Note, however, I completely lost the real meaning of the title and "RESTful Java Web Services" became "Java Web Services". I don't think it influenced my opinion about the book very much, though.
Long story short, I got a little disappointed. The book was too much concerned to cover "the most popular Java RESTful frameworks to date (Restlet, JAX-RS based frameworks Jersey and RESTEasy, and Struts 2)" (quoted from the book's website) and insisted on repeating the entire code snippets even though (quoting from the page 174 of the book) "all the details of the code have also been explained in Chapter 5. Nevertheless, we list all the code for the sake of completeness". It made its way to a few chapters meaning I read the book with all the patience needed throughout the chapters 1-5 (it took me a couple of days and was quite pleasant) and then suddenly found myself in the chapter 9 as the reading turned into flicking through the pages for the chapters 6-8. I enjoy reading technical books mostly for their introduction or guidance to the topic at hand and appreciate their comments woven into sections that can greatly influence their final outcome. Keeping the faith of finding something precious in a book while flicking pages is not an easy task as was the case for many parts of the book - it's more tough to pay attention to details knowing you may have read parts before and thus eventually may have lost attention altogether.
The book consists of 10 chapters and almost 240 pages. Quite a lot of complete, a few page-long code listings that was a waste of the book's space in this case. The author explained all the gory details of each class, with such care that you should be familiar with the Java language (quoted from the book's website) was buried in the book's requirements and was not assumed at all (not until the chapter 8).
Nonetheless, I must admit that the book provided some very useful information too. The first 2 chapters with REST principles (the chapter 1. "RESTful Architectures") and the use of Jakarta Commons HTTP Client library (the chapter 2. "Accessing RESTful Services - Part 1") took me minutes to read. They were very clear and comprehensible to introduce me to the world of RESTful Web Services and what it is to create a client to consume them.
The following, 4rd chapter "RESTful Web Services Design" was way better and I could know about the difference between a web service and a web application, and about the URI Template specification. The book seemed to have gotten better.
The chapter 5. "Jersey: JAX-RS" was exactly as I wished the entire book should've been - JAX-RS and its reference implementation Jersey covered. A broad smile showed up on my face when db4o came on the scene "to make the implementation easier" (page 91). In a moment the earlier deficiencies vanished into thin air. I could hardly hide my happiness. It is by no means certain that the book paved the way for db4o in my projects. If only the chapter had showed the important bits without repeating itself, it would've been the best chapter of the book.
The following 2 chapters about Restlet I read with mixed feelings. I think it could be because I was not content with the coverage of JAX-RS and Jersey, and I was getting tired of reading code listings that differed in very small bits about frameworks I would barely find use. The chapter 6 "The Restlet Framework" should rather be 5- not 40-page long. Just read the first 5-10 pages and be done with it. The next chapter 7 about RESTEasy was the fastest chapter I've ever read in my entire life. It took me about 5 minutes without skipping any word. I wished the author had explained a bit more about RESTEasy, which "adds more functionality to fully integrate with JBoss technology stack" (page 179), but unfortunately it was "beyond the scope of the book" (page 179).
The chapter 8. "Struts 2 and the REST Plugin" didn't delve into very low-level details. I couldn't figure out how Struts 2 knows about the REST plugin in the configuration file, a little bit about the action's getModel() method as well as how the variable representation was resolved in a jsp file. It was like the chapter meant to attract greater attention to the action code than it was in the earlier chapters of the book where each and every detail (even trivial ones) were explained.
I liked the chapter 9 "Restlet Clients and Servers" where I could appreciate simplicity of Restlet and its server/client API. With the comments about embedding Restlet in a desktop application (page 215) or setting it up so different ports handle a subset of available REST actions (page 217) were very helpful. It looks the book covered Restlet in 2 chapters that's 60 pages in total placing it as THE framework of this book. I wished JAX-RS with Jersey had received such extensive coverage instead.
The last chapter 10 "Security and Performance" brought some information about the OAuth authentication protocol I'd never heard before and how to handle Basic Authentication with Jakarta Commons HTTP Client library. Unfortunately, the chapter suffered from a few small yet important mistake having stated "All the XML tags are Tomcat specific" (page 226) while explaining web deployment descriptor (web.xml) and its security-constraint stanza. As the author said in the beginning of the chapter "we take the point of view of the architect and not of the creator of the infrastructures supporting our applications" (page 219) so you can safely disregard this chapter unless you have to. Nonetheless, it helped me to realize I need a book about infrastructure with Cloud Computing (on-demand infrastructure) covered.
The very last sentence of the book says it all about how to gain the real understanding of the RESTful Java Web Services: "The only thing left is for you to put down the book, but come back for reference as needed, begin developing your own RESTful services, and make the Web a better place.". I couldn't say it better. It's so often that I look for books with a complete coverage and definitive answers not sorting out problems myself. Thanks Jose!
For someone who wants to leverage Java RESTful frameworks in their Web Service development, Chapters 5-9 are excellent overviews of 4 frameworks available to the web services developer. Better still, with the example service from Chapter 4 as your baseline, you get real world exposure to help you choose the best framework for you.
On the back cover of this book, we find the Who this book is written for:
"This book is for developers who want to code RESTful web services using the Java technology stack together with any of the frameworks covered."
I would recommend this book to the following people:
- Web Application Developers interested in learning about RESTful Web Services.
- Web Application Developers interested in learning about several Java frameworks designed to work with RESTful Web Services.
I would not recommend this book to the following people:
- Network Administrators or System Architects looking to support RESTful Web Services.
- Lotus Notes Client (only) Application Developers
I tend to disagree with the way the example code is written, but that could just be down to a difference of opinions or different cultures. It's important to look at the downloadable example code as the book was written prior to Restlet 2.0 release. The example code covers both versions.
The book has sufficiently many typos and minor flaws that it becomes annoying.
Ricerca articoli simili per categoria
- Kindle Store > eBook Kindle > eBook in lingua straniera > eBook in inglese > Informatica, Web e Digital Media > Internet
- Kindle Store > eBook Kindle > eBook in lingua straniera > eBook in inglese > Informatica, Web e Digital Media > Multimedia e disegno grafico
- Kindle Store > eBook Kindle > eBook in lingua straniera > eBook in inglese > Informatica, Web e Digital Media > Programmazione
- Kindle Store > eBook Kindle > eBook in lingua straniera > eBook in inglese > Informatica, Web e Digital Media > Scienza dei calcolatori
- Libri in altre lingue > Informatica, Web e Digital Media > Internet
- Libri in altre lingue > Informatica, Web e Digital Media > Multimedia e disegno grafico
- Libri in altre lingue > Informatica, Web e Digital Media > Programmazione
- Libri in altre lingue > Informatica, Web e Digital Media > Scienza dei calcolatori