Description
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. You'll get step-by-step instructions for installing, configuring, and running several working JAX-RS examples using the JBoss RESTEasy implementation of JAX-RS.
Full Description
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
Colophon
The animal on the cover of RESTful Java with JAX-RS is an Australian bee-eater (Merops ornatus). It is commonly referred to as a rainbow bee-eater because of the vibrant colored feathers that adorn its body. Its bronze crown and nape, blue rump, and green and bronze wings make it easily distinguishable. Its red eye sits inside of a black stripe, outlined in blue, that extends from its bill to its ears. Females and males look alike and are only differentiated by the female's shorter and thicker tail streamers.
Distributed throughout Australia, Papua New Guinea, and eastern Indonesia, the Australian bee-eater usually lives in cleared areas and often uses quarries or mines to build its nesting tunnels. Of course, tunnels in such places are subject to destruction as a result of human activity. Other threats to the bee-eater's survival include foxes and wild dogs that dig up its nesting tunnels.It is believed that Australian bee-eaters are monogamous. The female builds the nesting tunnels, while her male partner catches food for both of them. To dig the tunnel, the female balances on her wings and feet, using her bill to dig and her feet to move loose soil backward. On average, she can dig about three inches per day.Although the nesting tunnels are very narrow, bee-eaters have been known to share tunnels with other bee-eaters and sometimes even other bird species. The female can lay as many as seven eggs at a time. Both parents are responsible for incubating them (for about 24 days) and feeding them once they hatch. Often older birds that never found a mate or whose mate has died will help feed others' young as well. Not surprisingly, the Australian bee-eater preys on bees, and though it is unaffected by the bee's sting, it is very careful to rub the bee on its perch to remove its stinger before consuming it. The bird always takes care to close its eye to prevent any poison from the bee's broken poison sac getting in it. The Australian bee-eater can consume several bees in the course of a single day and thus beekeepers generally aren't fans of the bird. Its diet consists of other insects as well, including dragonflies, beetles, butterflies, and moths.