LAB-5542: Project Jersey: Building RESTful Web Services in Java

Expected Duration: 120 minutes

Last Updated: May 20th, 2009

Project Jersey is the reference implementation of JAX-RS (JSR-311) - Java API for building RESTful Web Services. This API makes RESTful Web Services development with Java and some other VM-based languages very easy and straightforward. Besides the features defined by the standards, Jersey defines additional set of API's that make the developers' life even easier.

In this lab, we will start from basics - showing how to build a Hello World type of application and then show some more advanced features of JAX-RS and Jersey such as support for various media types, basic error handling, MVC support and client-side API's.

Copyright  2009 Sun Microsystems, Inc. All rights reserved. Sun, Sun Microsystems,
the Sun logo, Solaris, Java, the Java Coffee Cup logo, JavaOne, the JavaOne logo,
and all Solaris-based and Java-based marks and logos are trademarks or registered
trademarks of Sun Microsystems, Inc. in the United States and other countries.

Prerequisites

 

This hands-on lab assumes you have some basic knowledge of, or programming experience in, the following technologies:

  • Java™ language programming

You will need to refer to the accompanying presentation 5542_restwebservice_slides.pdf during the lab.


System Requirements

 
  • Supported OSes: Solaris™M 8/9/10 Operating System (OS), OpenSolaris™ Operating System (OS), Linux, Windows, Mac OS X 10.4+
  • Memory requirement: 2GB
  • Disk space requirement: 2GB

Software Needed For This Lab

 

Please install the following set of software. If you have any questions on installation, please feel free to send questions to the lab forum mentioned below.

Please refer to Exercise 0 of this lab for the guidance on how to install these.


Notations Used in This Documentation

 
  • <lab_root> - directory into which lab zip file is unzipped
    • This document uses <lab_root> to denote the directory under which you have unzipped the lab zip file of this hands-on lab. The name of the lab zip file of this hands-on lab is 5542_restwebservice.zip.
    • Once you unzipped the lab zip file under <lab_root>, it will create a subdirectory called restwebservice. For example, under Solaris, if you have unzipped the lab zip file in the /home/user directory, it will create /home/user/restwebservice directory.

Lab Exercises

 

Additional Resources

 

Where To Go For Help

 
 

Back to top
To exercises

Update Your Java Runtime Environment