Migration of Legacy Application : EJB3 or Spring

喜你入骨 提交于 2019-12-14 00:37:14

问题


I have legacy application using struts & ejb2.0, hibernate v3.0 running on JBoss v4.0 and now we have do migration of that application to new technology stack. We are exploring pros and cons of different technology stack and right now we have two options to decide from: EJB3.0 & JSF, Hibernate v4 on Jboss 7 or Spring & Hibernate v4 on tomcat.

What parameters should I be considering to select one or the other or vice-versa?

Update:

Which of EJB3.0 and Spring has efficient community support, side note - ejb3.0 tag has 1097 questions and spring has 13297, and so some how am getting inclined towards Spring, also by not being an standard spring has an advantage of rapid upgrade's which would fix industry challenges pretty fast compared to ejb3.

Thoughts?


回答1:


A long time ago, Spring was the de-facto thing to use, but over time Spring grew into quite a heavyweight beast. EJB on the other hand massively slimmed down and was greatly simplified.

The same goes for JSF, which was hugely improved in 2.0.

Those technologies really shine when used together in the Java EE 6 stack, which is currently having a great momentum. A complete Java EE 6 implementation (e.g. GlassFish) is only some 50MB, and the smaller subset of it (called Web profile) can be half of that. Servers start up in mere seconds.

At the moment I really don't see any specific need for Spring anymore. If your stack is already on Spring, it's of course not required to migrate to Java EE, but for new projects I would never choose Spring these days.




回答2:


Past year i had the same doubt, i choosed the EJB3 and i do not regret , here a good article to consider: http://biese.wordpress.com/2008/02/03/another-thought-of-spring-vs-ejb3/



来源:https://stackoverflow.com/questions/9263251/migration-of-legacy-application-ejb3-or-spring

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