• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What's new with EJB 3?

 
Ranch Hand
Posts: 249
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are the major differences between EJB 2 and 3?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the EJB3 spec, these are the new features in EJB3:


- Definition of the Java language metadata annotations that can be used to annotate EJB applications.These metadata annotations are targeted at simplifying the developer�s task,at reducing the number of program classes and interfaces the developer is required to implement, and at eliminating the need for the developer to provide an EJB deployment descriptor.

- Specification of programmatic defaults,including for metadata,to reduce the need for the developer to specify common,expected behaviors and requirements on the EJB container.A "configuration by exception" approach is taken whenever possible.

- Encapsulation of environmental dependencies and JNDI access through the use of annotations, dependency injection mechanisms, and simple lookup mechanisms.

- Simplification of the enterprise bean types.

- Elimination ofthe requirement for EJB component interfaces for session beans.The required business interface for a session bean can be a plain Java interface rather than an EJBObject, EJBLocalObject, or java.rmi.Remote interface.

- Elimination of the requirement for home interfaces for session beans.

- Simplification of entity persistence through the Java Persistence API.

- Support for light-weight domain modeling, including inheritance and polymorphism.

- Elimination of all required interfaces for persistent entities.

- Specification of Java language metadata annotations and XML deployment descriptor elements for the object/relational mapping of persistent entities.

- A query language for Java Persistence that is an extension to EJB QL, with addition of projection,explicit inner and outer join operations,bulk update and delete,subqueries,and group-by.

- Addition of a dynamic query capability and support for native SQL queries.

- An interceptor facility for session beans and message-driven beans.

- Reduction of the requirements for usage of checked exceptions.

- Elimination of the requirement for the implementation of callback interfaces.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic