« Business 2.0 article on Outsourcing | Main | Rich clients are making a comeback »

EJB 3.0 draft and POJO's

July 15, 2004

The first draft of EJB 3.0 (500KB) is available for review. In my view, a compelling feature of EJB 3.0 is the use of annotations to generate code. Yes, XDoclet does this already, but making is part of the spec is the next logical step. You can read Hani Suleiman's detailed critique on TheServerSide, and René Zanner's blog for a response. I happen to agree with Rene more.

On my last project, people thought I was making up the term POJO used in our Software Architecture documents. Well, it's official, POJO is used throughout the EJB 3.0 spec. I borrowed the term from Martin Fowler because it accurately described a simple Java object alternative to an EJB...

I've come to the conclusion that people forget about regular Java objects because they haven't got a fancy name - so while preparing for a talk Rebecca Parsons, Josh Mackenzie and I gave them one: POJO (Plain Old Java Object). A POJO domain model is easier to put together, quick to build, can run and test outside of an EJB container, and isn't dependent on EJB (maybe that's why EJB vendors don't encourage you to use them.)

Bruce Tate, author of Better, Faster, Lighter Java gives the lightweight proponents' (aka Spring, Hibernate, etc) point of view to EJB 3.0 on java.net. It's worth reading just for his account of how he came to "walk away" from EJB in the first place. In the end, since EJB 3.0 requires annotations, and annotations require JDK 1.5, most production environments will not be able to take advantage of the easier EJB 3.0 spec in the near term.

July 15, 2004 at 11:48 AM in Java | Permalink

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d834205eab53ef00d83421cfe953ef

Listed below are links to weblogs that reference EJB 3.0 draft and POJO's:

» The War is Over (WS-* vs. POX/HTTP) from Olivier Travers
Joshua Allen: "On one side, we have the people who believe that WS-* specifications such as SOAP and WS-Security will eventually dominate. And on the other, we have people who believe that HTTP with plain old XML (POX) will outlast... [Read More]

Tracked on Mar 15, 2005 4:25:55 AM

Comments

Post a comment