<h1>GlassFish v3 User Task Analysis for Jersey</h1> Back to GlassFish v3 User Task Analyses 3/3/08 Attendees: Paul,Jakub, Facilitator: Jennifer, Recorder: Dixie
Scope To identify the tasks that a developer must perform to develop and deploy RESTful web services by using Jersey. (There are no admin tasks associated.) Related Information List of tasks
- Installing (http://docs.sun.com/app/docs/doc/820-4867/ggnxe?a=view)
- Download Jersey from the update center
- Install Jersey on top of GF.
- Install Jersey on top of NetBeans
- Creating a RESTful resource class (http://docs.sun.com/app/docs/doc/820-4867/ggnxo?a=view)
- Identify the URI path of the resource in the resource class with the URI annotation.
- Identify the methods the resource supports using the HttpMethod annotation.
- Identify the content type of the response using the ProduceMime annotation.
- Write the supported methods in the resource class.
- Deploying and Testing (http://docs.sun.com/app/docs/doc/820-4867/ggnxs?a=view)
- Deploy a Jersey app to a GF servlet container
- Deploy a Jersey app to Grizzly (not included)
- Deploy a Jersey app to the Java 6 lightweight web server (not included)
- Run the application in a browser.
- Run the application at the command line using curl (not included)
- Customizing Your Representations (In Progress)
- Use message providers to read and write JSON objects or XML with JAXB.
- Create a Class
- Implement an Interface
- Annotate Your Class With Provider
- (Optional) Annotate With Producemine and Consumemime
- Use message providers to read and write ATOM and RSS feeds with Apdera.
- Create your own message provider to support reading and writing other Java types.
- Developing With Databases (In Progress)
- Use JPA to expose contents of a database table as a RESTful web resource.
- Generate RESTful web services from JPA entities.
- Advanced Topics
- Integrating with framework, such as Spring or Juice.
- Using polymorphism with resources and view that jsp
- Showing precondition support for get and put.
- Using Jersey with jMaki.
- Running the Jersey API using Jersey client-side API.
Associated Concepts
- About RESTful web services
- About JAX-RS
- About Jersey
Resources
- Create a Jersey FAQ (request from Paul)
Back to GlassFish v3 User Task Analyses
|