The Artima Developer Community
Sponsored Link

Java Community News
RESTful Java Development with JSR 311 and Jersey

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

RESTful Java Development with JSR 311 and Jersey Posted: Sep 10, 2007 11:45 AM
Reply to this message Reply
Jersey is the open-source reference implementation of JSR 311, the Java API for RESTful Web Services. New features in the most recent early access release include automatic content negotiation, a service provider framework, and tutorials on getting started with RESTful development in Java.

JSR 311, the Java API for RESTful Web Services, has been under development since February of this year. The specification is developed under the project. The reference implementation for JSR 311, in turn, is being developed in the open-source Jersey project on

Both the specification and the reference implementation saw new updates last week, including several tutorials on how to write RESTful Web services with Jersey.

The JSR 311 spec so far seems to center around a Pojo-based programming model where Web resources are implemented in terms of resource classes. Spec lead Marc Hadley summarizes the latest features of Jersey in a blog post, New Jersey Features, such as:

  • A change to the default resource object lifecyle from singleton to per-request
  • Support for non-empty resource class constructors...
  • A new SPI for plugging-in new resource providers... allows plugging-in of custom resource class factories and is used internally to support the per-request and singleton life-cycles... A resource provider is responsible for creating instances of resource classes for the Jersey runtime to use...

Additional features in the latest release include the ability to automatically obtain the appropriate media type based on a request:

For an HTTP method that produces more than one media type automatically select the appropriate media type according to what is acceptable. This enables a developer to implement one method for the returning of a JAXB bean that can be serialized as XML or JSON.

What do you think of JSR 311's directions so far?

Topic: Mike Stonebraker on Domain-Specific Databases Previous Topic   Next Topic Topic: John Resig on JavaScript API Design

Sponsored Links


Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use