InfoQ

News

What Should be In JEE 6? Gavin King's Wish List

Posted by Scott Delap on Apr 02, 2007 11:33 PM

Community
Java
Topics
JCP Standards ,
Enterprise Architecture
Tags
Java EE
Gavin King, Hibernate creator and Seam project lead, has posted the first of a series of posts containing his wish-list of features for JEE 6. The first item on Gavin's list is more concurrency modes for stateless and stateful session beans. He proposes three options:
  • No concurrency, the default, and currently supported behavior: the bean does not support concurrent clients. The container is permitted to throw a ConcurrentAccessException if two requests arrive simultaneously.
  • Bean-managed concurrency: the bean supports concurrent access by multiple threads, and is responsible for managing access to volatile data structures.
  • Container-managed concurrency: the bean supports concurrent clients, and the container is responsible for ensuring that concurrent threads are serialized before entering the bean implementation.

The second item Gavin proposes is Lightweight asynchronicity. He argues that the current options of JMS and EJB timers are not enough. In addition he advocates more than one @Timeout method per bean and enhanced scheduling options. The third item mentioned is stateful web service endpoints:

...Currently, only stateless session beans may function as web service endpoints. With some integration with WS-Contexts or WS-Addessing (or whatever WS-blahblah is appropriate), we would be able to support a stateful session bean that acts as a web service endpoint. I don't know exactly what this would look like yet, but we are trialing some stuff in Seam/WS that is probably relevant...

Gavin rounds out his wish-list with an optional business interface for EJB's, Simplified JMS/JavaMail, Enhanced Logging injection, EJB meta-annotations. He argues in respect to an optional business interface:

Currently, EJB mandates that all session beans have some @Local or @Remote interface. This was not an unreasonable requirement when session beans were understood to exist in a business tier, with a well-defined API sitting between the business logic and the client. ... Especially in an environment like Seam, where the only client of a bean might be a JSF page with EL expressions, the interface looks totally redundant! ... The interface should be optional, and when it is missing, the public methods of the bean class should be taken as the business methods of the session bean...

Servlet API enhancements by Sean Sullivan Posted Apr 3, 2007 9:46 AM
nice by Friszart Shaucle Posted Apr 3, 2007 9:08 PM
Sounds like a wishlist to make JBoss Seam a Java EE 6 standard by O Z Posted Apr 3, 2007 11:47 PM
Re: Sounds like a wishlist to make JBoss Seam a Java EE 6 standard by Emmanuel Bernard Posted Apr 9, 2007 8:53 AM
Re: Sounds like a wishlist to make JBoss Seam a Java EE 6 standard by Gavin King Posted Apr 12, 2007 7:38 PM
  1. Back to top

    Servlet API enhancements

    Apr 3, 2007 9:46 AM by Sean Sullivan

    Howard Lewis Ship and others have suggested improvements to the Servlet API: http://tapestryjava.blogspot.com/2004/12/servlet-mapping-limitations.html http://tapestryjava.blogspot.com/2006/01/servlet-25-wheres-regexp.html http://weblogs.java.net/blog/gmurray71/archive/2005/07/got_servlets.html http://www.bileblog.org/?p=226

  2. Back to top

    nice

    Apr 3, 2007 9:08 PM by Friszart Shaucle

    Gavin is always insighted.

  3. Some quotes from Gavin's original post: A lot of these items have come out of our experience with Seam... Especially in an environment like Seam, where the only client of a bean might be a JSF page with EL expressions, the interface looks totally redundant! Currently, it is possible to inject a Topic or Queue using @Resource, but of course what I'm really interested in is QueueSender or TopicPublisher. This is easy to fix - indeed, we already fixed it in Seam. (Just like it is in Seam.) For example, you might have several Seam components with the following annotations: ...

  4. Yes, we hope Web Beans JSR-299 (inspired from JBoss Seam) will be included into Java EE 6, and to do that a few other spec has to be tuned up. Nothing wrong with that :-)

  5. "Sounds like a wishlist to make JBoss Seam a Java EE 6 standard" Actually the main effort to introduce (some of) the ideas in Seam into the EE 6 spec is the Web Beans spec (JSR-299). We are working in close collaboration with Sun, Google, Oracle, Apache and others on this effort. The spec will be influenced by Seam, Guice, Shale, ADF and anything else we happen to find interesting :-) The things I'm talking about in these posts are stuff that is useful and interesting even if you don't use Web Beans. Cheers

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.