Tuesday, June 5, 2007

EJB3Unit

One day, when God was looking over his creatures, he noticed a boy named Sadhu whose humor
and cleverness pleased him. God felt generous that day and granted Sadhu three wishes. Sadhu asked
for three reincarnations--one as a ladybug, one as an elephant, and the last as a cow. Surprised by
these wishes, God asked Sadhu to explain himself. The boy replied, "I want to be a ladybug so that
everyone in the world will admire me for my beauty and forgive the fact that I do no work. Being an
elephant will be fun because I can gobble down enormous amounts of food without being ridiculed. I
will like being a cow the best because I will be loved by all and useful to mankind." God was charmed
by these answers and allowed Sadhu to live through the three incarnations. He then made Sadhu a
morning star for his service to mankind as a cow.
EJB too has lived through three incarnations. When it was first released, the industry was dazzled
by its innovations. But like the ladybug, EJB 1 had limited functionality. The second EJB
incarnation was just about as heavy as the largest of our beloved pachyderms. The brave souls who
could not do without its elephant-power had to tame the awesome complexity of EJB 2. And finally,
in its third incarnation, EJB has become much more useful to the huddled masses, just like the gentle
bovine that is sacred for Hindus and respected as a mother whose milk feeds us all..

(EJB 3 in action -Debu Panda, Reza Rahman, Derek Lane - 2006 Manning Publications)
After many POJO frameworks appears EJB 3.0 tends to simplify things while other early technologies like TopLink tends to fall hard ...an interesting framework for ejb3 unit testing is EJB3Unit

No comments:

Post a Comment