aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Beginning EJB 3 Application Development: EJB3 allows simpler design? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Beginning EJB 3 Application Development: EJB3 allows simpler design?" Watch "Beginning EJB 3 Application Development: EJB3 allows simpler design?" New topic
Author

Beginning EJB 3 Application Development: EJB3 allows simpler design?

Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hello,

I've recently attended a conference where "Core J2EE Patterns"
was considered backdated right from the moment EJB3 came out.

In general I'm under the impression as well that EJB3 allows
a more natural, and less of a straight jacket approach in
software design.

What is your opinion?

Do you think EJB3 might need loosening up a bit more in some
areas?

Cheers,

Gian


"Eppur si muove!"
Jon Wetherbee
author
Ranch Hand

Joined: Oct 05, 2006
Posts: 33
Hi Gian-
There are many answers to this, but the new direction of EJB 3 is clearly in response to criticism that EJB 2.x and earlier was too cumbersome to program, and required additional layers of infrastructure,like the DTO pattern, to use effectively. With JPA entities in EJB 3, DTO's are now a thing of the past. Entities are no longer bound to the EJB container, and can be freely instantiated in any application tier, and passed between tiers, as ordinary POJO's (when marked Serializable). In another example of new-found flexibility, JPA entities may be used effectively with session and message driven beans, leveraging the enterprise services offered by the EJB container, but entities may also co-exist nicely with Spring and other technologies.

In addition to adopting the far more lightweight POJO model for entities, EJB 3 has also added features made popular by Spring, such as container injection and interceptors.

Regards,
Jon
 
 
subject: Beginning EJB 3 Application Development: EJB3 allows simpler design?