Search code examples
javajakarta-eeejbdaorequesthandler

Will removing EJBs improve the performance of project?


I have been working in a Government Project using EJBs. I have found some Server issues while deploying EJBs. People working in my project have thought about removing EJBs from between the RequestHandler & DAO and to directly call DAO methods from RequestHandler.

My argument with this matter is, how can we even think about removing EJBs from the project which itself has the base framework as EJB !!!

Please inform about the correct solution required to improve performance while deployment & also inform the other way to improve speed & performance.


Solution

  • I have worked on a few projects where removing EJB improved performance dramatically.

    For me using EJBs is about improving productivity and the quality of the solution you produce rather than worrying about performance. Usually performance isn't a big issue, but if it is you can throw hardware at it and use a cloud/distributed solution, which costs less than it used to. i.e. it can be cheaper than spending more time developing.