Top reason not to use EJB 3.0 again?

让人想犯罪 __ 提交于 2019-12-21 12:06:42

问题


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:


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.




回答2:


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




回答3:


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




回答4:


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



来源:https://stackoverflow.com/questions/161349/top-reason-not-to-use-ejb-3-0-again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!