Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Top reason not to use EJB 3.0 again?

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.

like image 344
Arne Evertsson Avatar asked Oct 02 '08 08:10

Arne Evertsson


2 Answers

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.

like image 109
Arne Evertsson Avatar answered Oct 21 '22 05:10

Arne Evertsson


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.

https://blogs.oracle.com/kensaks/entry/optional_local_business_interfaces

like image 45
anders.norgaard Avatar answered Oct 21 '22 04:10

anders.norgaard