RESTful Java Web Services and over 2 million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading RESTful Java Web Services on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Restful Java Web Services [Paperback]

Jose Sandoval
3.0 out of 5 stars  See all reviews (4 customer reviews)
Price: £24.99 & FREE Delivery in the UK. Details
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon. Gift-wrap available.
Want it Thursday, 25 Sep.? Choose Express delivery at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition £15.44  
Paperback £24.99  

Book Description

15 Nov 2009 1847196462 978-1847196460
The approach we take is ideal for software developers with some, or extensive, programming experience: we design a RESTful API, which serves as our software specification, and implement it with every framework discussed in the book-there are no hypothetical examples; only practical working applications. This book is for Java developers who want to code RESTful web services using any of the open source RESTful frameworks available to date, for example, JAX-RS implementations such as Jersey and RESTEasy, the Restlet lightweight framework, or Struts 2 with the REST plug-in. You don't need to know REST, as we cover the theory of REST and web services; however, you should be familiar with the Java language and have some understanding of Java web applications. For each framework, we develop the same web service outlined in Chapter 4, so there is lots of working code available. This is a practical guide and the majority of the book is about coding RESTful web services, and not just about the theory of REST.

Customers Who Viewed This Item Also Viewed


Product details

  • Paperback: 256 pages
  • Publisher: Packt Publishing (15 Nov 2009)
  • Language: English
  • ISBN-10: 1847196462
  • ISBN-13: 978-1847196460
  • Product Dimensions: 23.5 x 19 x 1.4 cm
  • Average Customer Review: 3.0 out of 5 stars  See all reviews (4 customer reviews)
  • Amazon Bestsellers Rank: 1,266,643 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, and more.

Product Description

About the Author

Jose Sandoval


Jose Sandoval is a software developer based in Canada. He's played and worked with web technologies since the Mosaic web browser was released into the wild, and for the last eight years he's consulted for various financial institutions and software companies in Canada and the US, concentrating in large-scale Java web applications. He holds a Bachelor of Mathematics degree from the University of Waterloo and an MBA from Wilfrid Laurier University.


Aside from coding and writing, he enjoys watching a good soccer match and coaching his son's soccer team. You can learn more about his interests at his personal web site josesandoval.com or his consulting firm's web site sandoval.ca.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

5 star
0
3 star
0
1 star
0
3.0 out of 5 stars
3.0 out of 5 stars
Most Helpful Customer Reviews
1 of 1 people found the following review helpful
4.0 out of 5 stars Great introduction to RESTful server APIs 15 Jan 2010
Format:Paperback
I've been wanting to learn more about RESTful web services for a long time. I was introduced to the topic a long time ago but never really got time to look into the details of implementing neither clients nor services. For ages I've been trying to read articles and blogs about RESTful services but none of them really enticed me. So during my Christmas holiday I read RESTful Java Web Services by Jose Sandoval. The book is very concise and straight to the point in regards to familiarising the reader with RESTful service APIs. I was very pleased with the book as it got me started quickly and gained understanding of both the concepts of REST aswell as Java options for building RESTful services. There were a few things missing from the book however:

a) No examination of RESTful client APIs such as the Jersey Client API. The author may not have felt that it was necessary since RESTful clients can be implemented using a plain Java HttpURLConnection or the Commons HTTP Clients API (Used in the book).

b) Security aspects are only mentioned in the passing. It would have been very helpful to the reader if there were a few actual examples of protecting a RESTful service using security realms and SSL, followed by examples on how to access protected services.

c) Lastly integration with EJBs is not discussed. It is simply mentioned that they can be integrated. I was shocked to find that in the reference implementation of Java Enterprise 6 there is no dependency injection of EJBs into a restful service using the @EJB annotation. Instead one would have to manually connect to the EJB using JNDI, or implement the RESTful service as an EJB (this problem is not the authors fault!! but it would have saved me a few hours if this short coming was explained in the book).

Overall I'm very pleased with the book, it is great and easy to read. It has given me (a RESTful noob) confidence in using and implementing RESTful services in a production setup.
Was this review helpful to you?
3 of 4 people found the following review helpful
Format:Paperback
Let me begin by acknowledging that although I've been playing with Java Web Services for a while I would hardly claimed myself fluent in the concepts of Web Services. I do lack extensive hands-on experience with Web Services in Java, and yet somehow, I passed Sun Certified Developer for Java Web Services (SCDJWS) 5. I've recently been asked to run the course SW502 Intermediate Web Services Using IBM Rational Application Developer V6 (its Polish code's XML48PL). That was when I truly touched the Java Web Services code accompanied with very old theory - mostly about JAX-RPC. It was as much devastating to my understanding of the latest Java Web Services developments (esp. JAX-WS that was not covered at all) as helpful since I finally found some spare cycles to fully delve into WS-I Basic Profile, syntax and semantics of SOAP protocol, WSDL and partially UDDI. It let me experience beloved Aha moment when gained real understanding of the differences between the Document vs RCP style binding as well as literal vs encoded use. It was very refreshing experience.

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.
Read more ›
Comment | 
Was this review helpful to you?
2.0 out of 5 stars Out of date unfortunately 19 April 2013
Format:Kindle Edition|Verified Purchase
Thought this was going to be really useful then found that all of the Twitter-based examples early on in the book are no longer available via the Twitter API. Kind of hard to work around this...
Comment | 
Was this review helpful to you?
4.0 out of 5 stars Relevant sections are concise and to the point 21 Oct 2010
Format:Paperback
You can read this book in the space of a few hours as there are pages and pages of superfluous code that you can completely skip if you read the very concise and to the point explanatory text before hand. This book has really solidified my understanding of REST and how to go about designing a REST API. Contains just enough information and is easy to read.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 3.0 out of 5 stars  8 reviews
8 of 8 people found the following review helpful
2.0 out of 5 stars Decent discussion of frameworks, but not much else 2 Jan 2010
By W. Warner - Published on Amazon.com
Format:Paperback|Verified Purchase
I've been waiting for a book on Java and REST for a few months, and when I saw this book included chapters on the Jersey and Restlet frameworks, I bought it without a second thought.

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.
2 of 2 people found the following review helpful
2.0 out of 5 stars No match for its title and below my expectations - half the book would make it better 16 Aug 2010
By Jacek Laskowski - Published on Amazon.com
Format:Paperback
Let me begin by acknowledging that although I've been playing with Java Web Services for a while I would hardly claimed myself fluent in the concepts of Web Services. I do lack extensive hands-on experience with Web Services in Java, and yet somehow, I passed Sun Certified Developer for Java Web Services (SCDJWS) 5. I've recently been asked to run the course SW502 Intermediate Web Services Using IBM Rational Application Developer V6 (its Polish code's XML48PL). That was when I truly touched the Java Web Services code accompanied with very old theory - mostly about JAX-RPC. It was as much devastating to my understanding of the latest Java Web Services developments (esp. JAX-WS that was not covered at all) as helpful since I finally found some spare cycles to fully delve into WS-I Basic Profile, syntax and semantics of SOAP protocol, WSDL and partially UDDI. It let me experience beloved Aha moment when gained real understanding of the differences between the Document vs RCP style binding as well as literal vs encoded use. It was very refreshing experience.

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 Chapter 3. "Accessing RESTful Services - Part 2" begun very promising with its use of Prototype JavaScript library (it's on my TODO list) to fall short after a mere 4 pages when the listings made their way and eventually polluted the content with unnecessary pieces. It turned out a complete waste of my time.

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!
1 of 1 people found the following review helpful
2.0 out of 5 stars Thin on details 2 Nov 2010
By JB - Published on Amazon.com
Format:Paperback
This book gives a decent introduction to RESTful web services but that's about all. There is lots of filler. There are long code listings that add little value. Chapter 7 is 90% the same as chapter 5. The book covers each framework enough to build an simple application but skimps on advanced usages. The reader is left to scour the web for supplement documentation and examples. It would be a better book if it covered one framework and went into greater detail like RESTful Java with Jax-RS (Animal Guide).
1 of 1 people found the following review helpful
2.0 out of 5 stars Waste of money... 31 Aug 2010
By Cody Koeninger - Published on Amazon.com
Format:Paperback
...even though I checked it out from the library.

Get this if you want to see the exact same boilerplate code written in 3 different frameworks (4 if you count the rest easy chapter, which is literally a copy paste of the jersey chapter). Otherwise avoid it.
3.0 out of 5 stars Incomplete 25 Jun 2011
By Per Holst - Published on Amazon.com
Format:Paperback
The author, Jose Sandoval, goes over the same application for the different frameworks: JAX-RS, Restlet, RESTEasy, and Struts2. Well, the RESTEasy part is quickly skipped as RESTEasy builds on top of JAX-RS.

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.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Look for similar items by category


Feedback