May 06, 2004

EJB 3.0 officially announced

Linda de Michiel, EJB 3 spec lead, just finished her presentation of the EJB 3 work at TheServerSide symposium.  The Experts Group has been very busy these past nine months and considering the enthusiastic response of the audience, it's been time well spent.  Here are the salient points of the new specification.

The focus of EJB 3 is ease of development.  Session and Message-Driven Beans will also benefit from this simplification, but I think the most interesting developments are for Entity CMP beans.  EJB3 has learned a lot from the previous version and is taking ideas introduced in Hibernate and other persistence framework to come up with a brand new programming model featuring:
  • POJO-based (no more abstract methods, support of new)
  • Simplification of the design (now optional:  homes, component interfaces, lifecycle methods, no more EJBLocalObject, etc...)
  • Use of injection to make it easier to test outside the container
  • Use JSR 175 annotations instead of deployment descriptors
  • Support for disconnected access
  • Many EJB QL enhancements (bulk updates, etc...) as well as support for native SQL
  • A standard O-R mapping
I am positively thrilled by the direction EJB3 is headed.  The Experts Group has been extraordinarily active these past nine months and the activity on the phone calls and on the mailing-list is a testament to the commitment of the 20+ members to this task.  Of course, there are still quite a few undecided issues, but the major items are pretty much agreed upon at this time.

I think EJB3 has the potential to solve the problem of persisting Java objects to relational databases once and for all.  It took a while and a lot of errors, but we are finally getting there.

The EJB 3.0 BOF session tomorrow night will be a great opportunity for us to hear more feedback from the community.

Posted by cedric at May 6, 2004 07:18 PM

A great victory for JBoss and Marc Fluery. Gavin King has also gained the statue of a saint. Impact on BEA - market share erosion :-(

Posted by: Eric Ma at May 6, 2004 07:28 PM

"Impact on BEA - market share erosion :-( " - Eric Ma.

How does this influence BEA's market share? Won't they just implement EJB 3.0 like every other J2EE vendor?

Posted by: G Hermitage at May 7, 2004 12:38 AM

This is the death of Hibernate, isn't it?

Posted by: Hem at May 7, 2004 03:42 AM

Hibernate can also work in a 'local' environment (outside the container) like in a client/server desktop application. Does EJB O/R Mapping feature allow such setup (acting like a lib) or is it bound to the J2EE app server ?

Posted by: Gilles Philippart at May 7, 2004 05:54 AM

JSR-175 vs deployment descriptors is not an either or - if you get components from someone else you need somewhere (outside of source) to configure the components. You need to have both and if they throw that away, then it will be pointless.

I still think that EJB 3.0 will require a better JavaBeans model (for relationships) and JMX/JSR-175 annotations and then they can get into this.

Posted by: Brian Repko at May 7, 2004 06:03 AM

Seeing Hibernate as a threat the powers that be decided to co-opt it, and kill it... Gavin is comprador.

Posted by: Felicity at May 7, 2004 12:39 PM

Eric, positively stupid comments (and not germane to Cedric's blog entry to top it off). I can recall Linda saying "deployment descriptors must die" at least two years ago, long before bastardizing AOP was on the JBoss agenda.


Posted by: greg at May 7, 2004 12:40 PM

Well, I don't know what Linda said or not said 2 yrs ago, but I do know that EJB 2.1 that came out last year did not get rid of DD's, nor the remote/home interfaces, and no metadata tags or dependency injection were introduced. It was JBoss (read Fleury), having Gavin on board, who finally pushed the sucker over the hump.

Why did I say BEA will lose market share (even with Cedric enthusiastically applauding EJB 3.0)? Because EJB 3.0 entity bean is essentially Spring+Hibernate. Today people are developing/deploying with Tomcat+Spring+Hibernate free of charge, why do they have to pay BEA big bucks for the same feature? For legacy EJB 1.x/2.x compatibilities only? Also, Marc Fleury is no dummy. If he pushes something, it has to benefit JBoss more than the others.

Posted by: Eric Ma at May 7, 2004 01:19 PM

Found good in getting a huge useful information keep sending me the updates of EJB3.0 and updated tutorials if any

Posted by: Sivagopal.B at May 12, 2004 09:45 PM

Eric, Enterprise customers (read customers with money in the bank) will still need enterprise (read robust, secure, scalable etc) platforms such as WebLogic.
The rest is better of with JBoss et al.
my 2c

Posted by: PK at May 18, 2004 05:23 AM

Great site, well done. I enjoy beeing here and iŽll come back soon. You do a great job. Many greetings.

Posted by: Frauke at August 23, 2004 06:39 AM

End of Hibernate + Spring? Since they are ahead in this field, having basically thought up EJB 3.0, can't they now be the first to put out an EJB 3.0 compliant server and go into direct competition with BEA, Jboss, and all?

Posted by: Rupert at December 15, 2004 08:13 AM

Hibernate+Spring gives a very good and scalable solutions in Tomcat, so we do not need to go for EJB3.0 since it needs a big hanging transactional awareness.

Posted by: B.Sivagopal at April 24, 2005 05:27 AM

the overhead of writing deployment descriptors is reduced in EJB3.0, and writing Beans is as simple as that we need not have to worry about home and remote references...the usage call back methods also nolonger required..altogether..EJB3.0 is a jargon..But what about Object relational it is worth than Hibernate..?? if anybody have reply..! !

Posted by: Sivagopal.BALIVADA at June 27, 2006 04:25 AM
Post a comment

Remember personal info?