Top reason not to use EJB 3.0 again?
Asked Answered
D

4

7

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.

Diastrophism answered 2/10, 2008 at 8:30 Comment(0)
D
2

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.

Diastrophism answered 2/10, 2008 at 8:45 Comment(0)
B
1

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

Barneybarnhart answered 2/10, 2008 at 9:19 Comment(1)
There is no mandatory local interface for POJOs. Give them a try?Diastrophism
C
0

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

Cashier answered 2/10, 2008 at 8:56 Comment(0)
J
0

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

Jackelinejackelyn answered 3/10, 2008 at 20:35 Comment(1)
I think this is not true anymore with ejb3.Cao

© 2022 - 2024 — McMap. All rights reserved.