users@jersey.java.net

[Jersey] Action-based MVC in JAX-RS.next?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 3 Jun 2014 14:05:56 +0200

Hello Jersey Users,

As some of you may know already, in a recently conducted Java EE 8 survey, there was significant interest in adding an action-based MVC framework to the platform in EE 8. After some analysis, we are considering to add this as part of our JAX-RS.next work. In fact, as some of you may recall, this was on our list for JAX-RS 2.0 but we've never got a chance to discuss this topic in detail in our JAX-RS Expert Group.

We plan to base our standardization on the existing Jersey MVC templating API and SPI and add integration (in a Java EE app server environment) with JSF Facelets and it's supported scopes (session, conversation, flow, flash). Please, note that JSF integration support would be constrained to environments where Facelets support is available, i.e. stanadalone JAX-RS would not be mandated to provide this support and thus it would not add Facelet dependencies to standalone JAX-RS deployments - we took the same approach when adding the BeanValidation or Servlet integration support in the past.

Now the question has been raised whether server-side MVC is a technology of the past and whether it is worth standardizing as such. So I'd like to solicit your feedback here. Please, let us know what you think:

1. Do you use server-side MVC in your projects today? If yes, how?
2. Is it a technology of the past in your opinion?
3. Do you think it is worth standardizing as part of JAX-RS.next?
4. Do you have any other comments/feedback on the subj.?

Thank you,
Marek