RESTful Java with JAX-RS
Publisher: O'Reilly Media
Released: November 2009
Pages: 314

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

Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
O'Reilly MediaRESTful Java with JAX-RS
 
3.9

(based on 8 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (1)

88%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (6)
  • Concise (5)
  • Easy to understand (5)
  • Well-written (5)
  • Accurate (3)

Cons

    Best Uses

    • Intermediate (5)
    • Expert (4)
      • Reviewer Profile:
      • Developer (5)

    Reviewed by 8 customers

    Sort by

    Displaying reviews 1-8

    Back to top

    (4 of 5 customers found this review helpful)

     
    5.0

    Examples for this book

    By Napu Sun

    from Regina SK, Canada

    Verified Reviewer

    Comments about O'Reilly Media RESTful Java with JAX-RS:

    I found many people can't find the examples. I am also looking for it. Finally, the information is in the Chapter 15.

    RESTful Java with JAX-RS examples can be found at
    https://resteasy.svn.sourceforge.net/svnroot/resteasy/tags/RESTEASY_JAXRS_1_2_GA/examples/oreilly-workbook/

    The examples are embedded with the RESTEasy distribution.

    (0 of 2 customers found this review helpful)

     
    5.0

    Nice way to revise things

    By Chitta

    from Bhubaneswar

    About Me Developer

    Pros

    • Concise
    • Easy to understand
    • Helpful examples
    • No idea how accurate it i
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate

      Comments about O'Reilly Media RESTful Java with JAX-RS:

      This book has got two sections. and can be used as revision the second section. You can directly follow the second section and its examples to guide you through easy steps doing thing in REST maven. It downloads automatically what you need.

      (3 of 5 customers found this review helpful)

       
      5.0

      For those who looking for example codes

      By sat

      from India

      About Me Developer

      Pros

      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Novice
        • Student

        Comments about O'Reilly Media RESTful Java with JAX-RS:

        Great book... for those who are looking for work book examples.. download resteasy bundle.. its in examples.. have a blast.........

        (5 of 6 customers found this review helpful)

         
        4.0

        The book to have if you're developing RE

        By Thomas, Professional Geek

        from Portland, OR

        About Me Developer

        Verified Reviewer

        Pros

        • Accurate
        • Concise
        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Expert
          • Intermediate
          • Novice

          Comments about O'Reilly Media RESTful Java with JAX-RS:

          No one really enjoys reading specs, particularly not JSRs (Java Specification Requests, for those of you who are lucky enough not to have encountered these fun-filled documents). For those of you doing Java web development and looking for a good way to build RESTful applications, this might have been a sore spot when trying to understand JAX-RS -- the Java specification that outlines an API for building REST apps using annotations.

          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.

          (1 of 1 customers found this review helpful)

           
          4.0

          Where are the online resources for book?

          By nyceyes

          from New York City

          About Me Designer, Developer, Educator

          Verified Reviewer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

          • Web resources missing

          Best Uses

          • Expert
          • Intermediate

          Comments about O'Reilly Media RESTful Java with JAX-RS:

          Very good book. Good writing, very thorough. But the book resources, as mentioned by the previous reviewer, is nowhere to be found.

          (3 of 4 customers found this review helpful)

           
          3.0

          Very good book... but where's it's code?

          By nyceyes

          from New York City

          About Me Designer, Developer, Educator, Sys Admin

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

          • Void of cource code
          • Void of workbook

          Best Uses

          • Expert
          • Intermediate

          Comments about O'Reilly Media RESTful Java with JAX-RS:

          Clearly the author and editor put thought into this book. It's well written, thorough, and gives helpful reminders on Java along the way (in addition to clearly going over it's core subject matter REST/JAS-RX). On that alone I would give it 5 stars. But unfortunately, the book source code and work-book are no where to be found. As this is part of the book, I cannot give it 5 stars. Still, very nice job on the physical book material itself.

          (1 of 1 customers found this review helpful)

           
          4.0

          Code examples easy to find

          By Bookwinner

          from Alexandria, VA

          Verified Reviewer

          Pros

          • Helpful examples

          Cons

            Best Uses

              Comments about O'Reilly Media RESTful Java with JAX-RS:

              I just won this book at the NoVA Java Users Group meeting last night, where the author, Bill Burke spoke. He is a *very* good speaker by the way. So I will give him a little help by refuting the last (only) reviewer's comment. By following the instructions in Part II of the book (the "workbook" section), I was able to download the resteasy distribution, with what seems to be all of the examples. The only change I did was to download the file resteasy-jaxrs-1.2.1.GA-all.zip and not the 1.2.GA.zip file referenced in the text. At this point, all of the examples seem to be there. While it is a pain to buy a book with no source examples, this book shouldn't be included in that group. More on the book as I work through it.... Thanks Bill!

              (7 of 24 customers found this review helpful)

               
              1.0

              cannot find the work boom

              By aa

              from toronto, on

              Comments about O'Reilly Media RESTful Java with JAX-RS:

              Its really fustrating for me to find the source code, work book, for this book. I spent hours and could find where to download the source code. It would be nice if the main page of the book have a link to download the source code.

              Displaying reviews 1-8

              Back to top

               
              Buy 2 Get 1 Free Free Shipping Guarantee
              Buying Options
              Immediate Access - Go Digital what's this?