views:

849

answers:

4

The scenario

  • You have developed a webapp using EJBs version 3.
  • The system is deployed, delivered and is used by the customer.

If you would have to rewrite the system from scratch, would you use EJBs again?

Yes: Don't answer this question, answer this one instead.

No: Provide the top reason for not using EJBs again, based on your personal experience.

Let the answer contain just one reason. This will let other readers vote up the number one reason to stay away from EJB 3.

+1  A: 

The project did not have any of the problems that EJBs are supposed to solve. Using EJBs just made it harder to code, to debug, to build, to deploy and to document and understand.

Arne Evertsson
A: 

Having to do relationship-child management yourself: Hibernate's all-delete-orphan didn't make it into the 3.0 spec.

fiddlesticks
+1  A: 

The top reason for not using EJB 3.0 again? Maybe you can wait for EJB 3.1 which does away with a major piece of insanity: the mandatory local interface.

http://blogs.sun.com/kensaks/entry/optional_local_business_interfaces

anders.norgaard
There is no mandatory local interface for POJOs. Give them a try?
Arne Evertsson
+1  A: 

Coding an app in EJB is too bulky and in my experience you can get away with a light weight alternative