Roberto Chinnici | 25 Jan 2011 19:44
Picon
Favicon

JAX-RS 2.0 JSR approved

  The JSR review ballot is over: JAX-RS 2.0 was approved with 11 YES 
votes, 0 NO. See [1] for the full results. Thanks to everyone for the 
support!

We'll now proceed to form the expert group. Please click on the "I would 
like to join this Expert Group" link on the JSR page [2] and follow the 
instructions to submit your nomination.

[1] http://jcp.org/en/jsr/results?id=5140
[2] http://jcp.org/en/jsr/detail?id=339

Thanks,
Roberto

Roberto Chinnici | 12 Jan 2011 01:22
Picon
Favicon

JAX-RS 2.0 JSR submitted

  FYI, the JAX-RS 2.0 JSR was submitted to the JCP and is now live at 
http://jcp.org/en/jsr/detail?id=339. The ballot closes on January 24.

--Roberto

Edward Bratt | 10 Dec 2010 23:55
Picon
Favicon

For Project Admins: Instructions for linking migrated Downloads files

This note is for project administrators ...

I have written some instructions to help you with the task of relinking the Download's files back into your project.
http://kenai.com/projects/glassfish-migration/pages/LinkingMigratedDownloadFiles
If you need additional help, drop us a line at: migration-help-1GxOjfRMSZB2Jdz5sR9PpJ1crnofC72CrRtG1Fwl4lA@public.gmane.org

--
Cheers, Ed


Ed Bratt | Senior Software Development Manager
Phone: +1 408 2764170 | Fax: +1 408 2767191 | Skype ID: edbratt
Oracle GlassFish Server
4220 Network Circle | MS USCA22-102 | Santa Clara, CA 95054
Oracle is committed to developing practices and products that help protect the environment

Edward Bratt | 10 Dec 2010 21:40
Picon
Favicon

Kenai migration complete: Documents & Files are imported

One final blast e-mail

All Documents and Files are now uploaded for all projects which were recently migrated to the Kenai hosting suite.
Your project administrators will determine how these should be presented in your project pages. Please address your queries to your project aliases. If you aren't sure which alias to use, try users <at> <project>.java.net.

Thanks,
Ed Bratt (& the Glassfish & Kenai migration team)
--


Ed Bratt | Senior Software Development Manager
Phone: +1 408 2764170 | Fax: +1 408 2767191 | Skype ID: edbratt
Oracle GlassFish Server
4220 Network Circle | MS USCA22-102 | Santa Clara, CA 95054
Oracle is committed to developing practices and products that help protect the environment

Guilherme Silveira | 17 Nov 2010 00:29
Picon
Gravatar

JSR311: JSR311: Draft of the JAX-RS 2.0 JSR

Hi there,

I support it. I've added a few comments/questions here too:

> This JSR will develop the next version of JAX-RS, the API for for
RESTful (Representational State Transfer) Web Services in the Java Platform.
Does the new JSR need to remain compatible with the previous one?
Being completely compatible seems like not a good decision.

On the way between those two extremes is the possibility to keep
compatibility with the previous version of the spec and only support
the new features in the new style of describing your mvc based
resources.
In this situation, the devs have freedom to implement support in any
way and keep compatibility enough so that existing clients can move
their resources in a per class basis to the new spec - whenever they
desire that resource to use any new feature.

> 2.1 Please describe the proposed Specification:

Does it make sense for the API to define filtering apis both for the
request and response (as in the servlet api, but for each one)? This
way any feature written through filters for any JAX-RS implementation
would work in any other implementation.
Common features are async support, 300, 400 and 500 family error code
default handlers and more.

I believe implementation issues (i.e. refactor friendly link builder,
error handling be supported either through throwing exception or
returning the response code) are not to be discussed right now,
correct?

Regards

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/
Roberto Chinnici | 12 Nov 2010 01:24
Picon
Favicon

JSR311: Draft of the JAX-RS 2.0 JSR

  Experts,

Below you'll find a draft of the JAX-RS 2.0 JSR. Since JAX-RS 1.1 
closed, we've been interacting with many of you in the community, at 
conferences and across various forums, so hopefully you won't find any 
surprising items in this draft.

Please send us your comments/suggestions in the next couple of weeks. In 
parallel, we'll be working on filling in the remaining sections marked 
as TBD, including the schedule and business terms. We'd like to submit 
the JSR in early December, so as to get it approved by the JCP Executive 
Committee ahead of the year-end holidays.

Please let us know if you'd like to be listed as a supporter of this JSR.

Thanks,
Roberto & Paul

========

Title:

JAX-RS 2.0: The Java(TM) API for RESTful Web Services 2.0

Summary:

This JSR will develop the next version of JAX-RS, the API for for 
RESTful (Representational State Transfer) Web Services in the Java Platform.

Section 1: Identification

JCP Member submitting this proposal: Oracle Corporation

Name of Contact Person: Roberto Chinnici
E-Mail Address: roberto.chinnici@...
Telephone Number: +1 (415) 402-7873
Fax Number: +1 (415) 402-7215

Name of Specification Lead: Roberto Chinnici
E-Mail Address: roberto.chinnici@...
Telephone Number: +1 (415) 402-7873
Fax Number: +1 (415) 402-7215

Name of Specification Lead: Paul Sandoz
E-Mail Address: paul.sandoz@...
Telephone Number: +33476188109
Fax Number: N/A

Initial Group Membership:

TBD

Supporting this JSR:

TBD

Section 2: Request

2.1 Please describe the proposed Specification:

The most commonly requested feature for JAX-RS 2.0 is a client API: many 
if not all JAX-RS implementations provide some degree of client API 
support. This JSR will define two client APIs, both compatible with the 
REST style: a low level API using a builder pattern and a higher level 
one leveraging the former. Common security mechanisms will also be 
specified. The API will not define how HTTP client implementations, such 
as HttpUrlConnection or the Apache HTTP client library, will plug into 
the API. The API will support synchronous and asynchronous response 
processing. WebSocket or HTTP streaming processing of responses are out 
of scope for this JSR and will be handled in a future revision of JAX-RS.

Hypermedia is a very important feature of RESTful Web applications. 
JAX-RS 1.1 provided some basic support for building URIs but this JSR 
will define a way to easily create and process links associated with 
resources in representations either as link headers or links within the 
entity body. Similarly, on the client it will be possible to extract 
links in representations and make further requests according to those links.

Model-View-Controller (MVC) is a common pattern in Web frameworks, where 
it is used predominantly by HTML-based applications. Adopting the MVC 
terminology, JAX-RS resource classes are comparable to controllers. This 
JSR will specify an MVC architecture compatible with the JAX-RS 
programing model. Java Server Pages will be specified as one type of 
view. It will be possible to plug in other view technologies, for 
example FreeMarker or StringTemplate.

JAX-RS 1.1 has limited support for parameter validation. This JSR will 
make it possible to validate a set of parameters, such as form or query 
parameters, and to return a meaningful response in case validation 
fails. The primary API utilized for validation will be the Bean 
Validation API.

JAX-RS 1.1 was defined before JSR-330 was specified and as a result does 
not utilize 330 annotations, such as  <at> Inject, as effectively as it 
could. This JSR will specify closer integration with 330 annotations 
that may potentially render some existing annotations in JAX-RS, such as 
 <at> Context, deprecated or redundant.

JAX-RS 1.1 defines a synchronous request response model on the server 
side. This JSR will specify a simple asynchronous request processing 
model such that a response can be returned asynchronous to the request. 
Servlet 3.0 can be leveraged to enable such support but implementations 
may choose to use other container-specific APIs instead.

In JAX-RS 1.1, content negotiation is primarily driven by the client 
using the "q" parameter in the Accept header. This JSR will add support 
for a server-side equivalent of it, "qs", to give the server more saying 
in the selected representation; the algorithm for content negotiation in 
the existing JAX-RS specification will be update so as to maintain 
determinism and compatibility across implementations.

This JSR will also make improvements to JSR in the area of ease of use, 
e.g. by following the do-not-repeat-yourself principle more closely. It 
will also fix any number of bugs discovered in JAX-RS 1.1.

As mentioned above, asynchronous support for HTTP long polling, Comet 
and Web Sockets is out of scope for this release. We plan to address it 
in a future revision of the JAX-RS specification.

2.2 What is the target Java platform? (i.e., desktop, server, personal, 
embedded, card, etc.)

This specification is targeted for Java SE 6.0 or higher and Java EE 6 
or higher platforms.

2.3 The Executive Committees would like to ensure JSR submitters think 
about how their proposed technology relates to all of the Java platform 
editions. Please provide details here for which platform editions are 
being targeted by this JSR, and how this JSR has considered the 
relationship with the other platform editions.

This JSR is targeted for inclusion in the Java EE 7 platform. 
Additionally, Java EE 6 products will be allowed to implement JAX-RS 2.0 
instead of JAX-RS 1.1.

2.4 Should this JSR be voted on by both Executive Committees?

No. By the SE/EE EC only.

2.5 What need of the Java community will be addressed by the proposed 
specification?

See 2.1 above.

2.6 Why isn't this need met by existing specifications?

See 2.1 above.

2.7 Please give a short description of the underlying technology or 
technologies:

See above.

2.8 Is there a proposed package name for the API Specification? (i.e., 
javapi.something, org.something, etc.)

JAX-RS 2.0 will use the same package name as JAX-RS 1.1, namely javax.ws.rs.

2.9 Does the proposed specification have any dependencies on specific 
operating systems, CPUs, or I/O devices that you know of?

No.

2.10 Are there any security issues that cannot be addressed by the 
current security model?

No. This JSR will leverage existing HTTP security mechanisms.

2.11 Are there any internationalization or localization issues?

This JSR will use the I18N support in Java SE.

2.12 Are there any existing specifications that might be rendered 
obsolete, deprecated, or in need of revision as a result of this work?

No.

2.13 Please describe the anticipated schedule for the development of 
this specification.

TBD

2.14 Please describe the anticipated working model for the Expert Group 
working on developing this specification.

The primary means of communication will be email, with conference calls 
and face-to-face meetings scheduled as needed. We will solicit feedback 
from the community and leverage the open source development model.

2.15 Provide detailed answers to the transparency checklist, making sure 
to include URLs as appropriate.

JAX-RS 2.0 will follow the same working model as JAX-RS 1.0/1.1 
(JSR-311). In particular, a project site will be used to track all 
issues and disseminate information on the progress of the JSR. See 
https://jsr311.dev.java.net/ for more details on the way JAX-RS 1.0 was run.

- The public can read the names of the people on the Expert Group.

This information will be on on the project page for the JSR. It will 
also be part of every specification draft.

- The Expert Group business is regularly reported on a publicly readable 
alias.

The Expert Group will conduct business on a publicly readable alias. A 
private alias will be used only for EG-confidential information, as needed.

- The schedule for the JSR is publicly available, it's current, and I 
update it regularly.

The schedule will be available on the project page for the JSR.

- The public can read/write to a wiki for my JSR.

We'll use a public mailing list for comments.

- I read and respond to posts on the discussion board for my JSR on jcp.org.

We'll track such discussions and respond to them or redirect users to 
the public comment mailing list.

- There is an issue-tracker for my JSR that the public can read.

Yes, it will be accessible from the JSR project page.

- I have spoken at conferences and events about my JSR recently.

Yes, most recently at JavaOne 2010 and Devoxx 2010.

- I am using open-source processes for the development of the RI and/or TCK.

Yes, as Project Jersey, see https://jersey.dev.java.net/.

- The Update tab for my JSR has links to and information about all 
public communication mechanisms and sites for the development of my JSR.

It will point to the project page for the JSR.

2.16 Please describe how the RI and TCK will de delivered, i.e. as part 
of a profile or platform edition, or stand-alone, or both. Include 
version information for the profile or platform in your answer.

The reference implementation will be made available standalone and also 
as part of the reference implementation for the Java EE 7 platform. The 
TCK will be made available standalone as part of the Java EE CTS.

2.17 Please state the rationale if previous versions are available 
stand-alone and you are now proposing in 2.13 to only deliver RI and TCK 
as part of a profile or platform edition (See sections 1.1.5 and 1.1.6 
of the JCP 2 document).

N/A.

2.18 Please provide a description of the business terms for the 
Specification, RI and TCK that will apply when this JSR is final.

TBD

Section 3: Contributions

3.1 Please list any existing documents, specifications, or 
implementations that describe the technology. Please include links to 
the documents if they are publicly available.

JAX-RS 1.1 specification, http://jcp.org/en/jsr/detail?id=311.

3.2 Explanation of how these items might be used as a starting point for 
the work.

The JAX-RS 1.1 specification will be the starting point for this work.

Section 4: Additional Information

4.1 This section contains any additional information that the submitting 
Member wishes to include in the JSR.

N/A
Bill Burke | 6 Jul 2010 15:39
Picon
Favicon

JSR311: EJBException handling spec error

The spec says: "If an ExceptionMapper for EJBException or subclass is 
not included with an appliction, then exceptions thrown by an EJB 
resource class or provider method MUST be treated as an EJB application 
exception..."

An "application exception" in EJB means that the thrown exception will 
not automatically cause a rollback and should be propagated as-is. 
Following this JAX-RS/EJBException logic to the letter of the law would 
make it impossible for EJB applications to throw exceptions that cause 
transaction rollbacks.

The EJB container wraps unchecked (non applicaton) exceptions within 
EJBException.  Unchecked exceptions are required by the EJB 
specification to trigger a rollback unless they are annotated with 
 <at> ApplicationException or ejb-jar.xml equivalent.

The spec should instead just say:

"If an ExceptionMapper for EJBException or subclass is not included with 
an appliction, then EJBException thrown by an EJB resource class or 
provider method MUST be unwrapped and processed as described in section 
3.3.4"

--

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
Rahul Misra | 10 Dec 2009 22:40
Picon

JSR311: Support for jersey1.1 on Sun web server 7.0 update 3?

Hi All

I would appreciate if anyone can confirm if jersey 1.1 is supported in 
the above mentioned web container? REST calls for update operation (PUT) 
are failing for me. Please reply to me as I am not on this alias.

Appreciate the help.

Thanks
Rahul
Marc Hadley | 21 Aug 2009 22:22
Picon

JSR311: Updated 1.1 spec and javadocs

As indicated earlier, we are going to need to respin the 1.1  
maintenance release due to changes in Servlet 3 and the still evolving  
Managed Beans/JSR 330/JSR 299 injection story. Here are the latest 1.1  
API and spec:

Changelog: https://jsr311.dev.java.net/drafts/changelog.1.1.html
Javadocs: https://jsr311.dev.java.net/nonav/releases/1.1/index.html
Spec PDF: https://jsr311.dev.java.net/drafts/spec20090821.pdf
Spec HTML: https://jsr311.dev.java.net/nonav/releases/1.1/spec/spec.html

We still need to finalize the details of how Managed Beans/JSR 330/JSR  
299 can be used in JAX-RS and once that is done I'll post another  
update and we can start the MR review cycle at the JCP. The current  
plan is to get the JCP review started by early October with a final  
1.1 release in early November.

Marc.
Bill Burke | 19 Aug 2009 19:33
Picon
Favicon

JSR311: default EJBExceptionMapper in spec...

I'm doing an EJB example in my book and came across the scenario of 
EJBException.  Maybe the spec should define a default ExceptionMapper 
for it?  Here's a simple one I did:

 <at> Provider
public class EJBExceptionMapper implements ExceptionMapper<EJBException>
{
     <at> Context
    private Providers providers;

    public Response toResponse(EJBException exception)
    {
       if (exception.getCausedByException() == null)
       {
          return Response.serverError().build();
       }
       Class cause = exception.getCausedByException().getClass();
       ExceptionMapper mapper = providers.getExceptionMapper(cause);
       if (mapper == null)
       {
          return Response.serverError().build();
       }
       else
       {
          return mapper.toResponse(exception.getCausedByException());
       }
    }
}

--

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
Bill Burke | 18 Aug 2009 02:00
Picon
Favicon

JSR311: EJB singletons

Any way we could amend the specification so that EE 6 containers must 
support both Stateless EJBs and Singleton EJBs?  THe Changelog just 
requires stateless.

--

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

Gmane