672329 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 4 Messages: 4 Messages: 4 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Web Beans Early Draft Review available

Posted by: Chris Wash on October 23, 2007 DIGG
An early draft review of JSR-299 "Web Beans" snuck out the door last Friday, despite some technical problems with the JCP site. Web Beans, a melding of concepts from annotation-friendly Java 5 frameworks like JBoss Seam and Google Guice, looks to be Java's answer to other frameworks based on dynamic languages. At its core, Web Beans aims to provide a powerful, contextual-driven component model with a sophisticated, type-safe dependency injection mechanism. From the draft:
Web Beans allows EJB 3.0 components to be used as JSF managed beans, thus unifying the component models of EJB and JSF and significantly simplifying the programming model when EJB and JSF are used together.
A series of sneak peek articles written by Gavin King, spec lead, came out prior to the draft and give some background and context to the draft.

Threaded replies

·  Web Beans Early Draft Review available by Chris Wash on Tue Oct 23 09:32:34 EDT 2007
  ·  Re: Web Beans Early Draft Review available by joe fouad on Tue Oct 23 14:42:16 EDT 2007
    ·  Re: Web Beans Early Draft Review available by Gavin King on Fri Oct 26 00:58:49 EDT 2007
  ·  Re: Web Beans Early Draft Review available by Steven Murray on Tue Oct 23 18:20:14 EDT 2007
    ·  Re: Web Beans Early Draft Review available by Gavin King on Fri Oct 26 01:04:11 EDT 2007
  Message #241543 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Web Beans Early Draft Review available

Posted by: joe fouad on October 23, 2007 in response to Message #241492
it is not released from the JCP site and it lack very much of its content,and no examples at all
not very usefull!!!

  Message #241555 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Web Beans Early Draft Review available

Posted by: Steven Murray on October 23, 2007 in response to Message #241492
This effort is long over due although I am not sure why it is not part of JSF 2.0. For me, getting a standard way of doing this into JSF is key for it to jump to the next level of usability.

I do have some concerns. Particular is the fact that there can be only one "Web Conversation" associated with a JSF request.
• Any JSF request has exactly one associated conversation
• The conversation associated with a JSF request is determined at the end of the restore view phase and does not change during the request

What about navigation? Say I begin the request with view A and I want to navigate to view B. I want view A to be associated with conversation A' and view B to be assocaited with conversation B'. Will that work and why not?

By saying a Web Container has to support JTA transactions is pretty much saying you have to be using J2EE. Why make that requirement, optional yes, required no.

Ditto for JTA persistence.
Web Beans provides JPA persistence contexts scoped to the Web Beans conversation.
JPA is certainly a good implementation choice but that is an implementation detail not a specification requirement.

There are also other features that seem to be crossing over into the EJB/J2EE realm like Interceptors, neat but I don't want to be locked into J2EE.

Anyway will give it a re-read as I appreciate what JBOSS is doing.

  Message #241752 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Web Beans Early Draft Review available

Posted by: Gavin King on October 26, 2007 in response to Message #241543
it is not released from the JCP site


It is now:

http://jcp.org/aboutJava/communityprocess/edr/jsr299/

The JCP site is having many technical issues at the moment, hence the delay.

and it lack very much of its content


It's an *early* draft. The idea of an early draft is to get community involvement and feedback early in the process of designing a spec.

and no examples at all not very usefull!!!


There's lots of examples of components. Well, its true that there is no full worked example of an *application*, but that's not typical in specs, right?

  Message #241754 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Web Beans Early Draft Review available

Posted by: Gavin King on October 26, 2007 in response to Message #241555
This effort is long over due although I am not sure why it is not part of JSF 2.0.


Well, partly so that the component model is agnostic of JSF.

What about navigation? Say I begin the request with view A and I want to navigate to view B. I want view A to be associated with conversation A' and view B to be assocaited with conversation B'. Will that work and why not?


You want to change conversation in the middle of a faces form submission? Why? I have found almost no usecases for doing this...

W.R.T. dependencies upon things like JPA and the EE environment, this is definitely something we are looking to minimize, since we have had a lot of feedback that this work is useful outside the EE environment.

But note that just because the spec includes integration with a technology like JPA does not necessarily create a hard dependency to JPA. You could still integrate Hibernate or something else if you prefer. Web Beans is designed to be deeply extensible.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 2

Reza Rahman continues to explore the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (January 21, Article)

Ted Neward Q&A: What you must know about JavaScript, Scala and more

Ted Neward is an independent consultant specializing in high-scale enterprise systems, and an authority in Java and .NET technologies. He is the author and co-author of several books, including Effective Enterprise Java. At TheServerSide Java Symposium in March, he will be presenting sessions on pragmatic architecture, ECMAScript and Scala. (January 15, Article)

Developers split on open sourcing Java

Now that Oracle is absorbing Sun Microsystems, there mixed views on what should come of the Java Community Process (JCP). While some say Oracle should become the new steward of Java and keep the JCP much as it was, others argue that it may be time to open-source this widespread language. (November 24, Article)

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map