Monday, September 15, 2008

Introduction to WebBeans

Hi to all;

Nowadays I am playing with the Web Beans Specification. It is published on the with the code JSR-299.

In these small transcripts, I will try to explain and give an example of what the Web Bean tries to solve in the enterprise development. We can summarize its main objectives as follow
  • Defines contextual components.
  • Handles dependency injections and auto destruction of the components.
  • Defines loosely coupled components wiring using its powerful events mechanism.
  • Adds new scope types to the already defined request, session and application scopes defined in the servlet specification.
  • Allows deployment time changing of the component implementation
  • Allows runtime changing of the component implementation with type safe resolutions
  • Allow components integration with Unified EL
  • Integrates JSF (Java Server Faces) and EJB3 technologies seemlesly. It allows EJB3 session beans as JSF managed beans.
  • It integrates with the JPA extended persistence context.
Actually, Web Beans specification defines the Unified Component Model for Java Enterprise Application based on the existing J2EE specifications. It does not add extra functionality such as transaction management, security etc., it defines and manages the stateful contextual components within well defined scopes.

We will try to create some code examples in the next post to further explain above concepts.


No comments: