旧的 AppFuse ...什么框架是直接迁移?
我们早在 2006 年就开始构建我们的网站/应用程序,并选择使用 appFuse 1.9.4 作为我们的应用程序框架。没有直接升级到 AppFuse 2.x 的途径,现在 AppFuse 已停止使用。
我们停留在 Spring 2.0 和 Hibernate 3.2 上,并且使用 JSTL 以及 XFire(和 SOAP)。
我们希望升级我们的框架,以利用一些新的编程范例(例如注释,并迁移到 CXF),并让我们的编程团队具有更大的灵活性和更快的开发周期。
Grails 看起来很有可能,Roo 也是如此。
但是,我们有超过 850 个 java 源代码文件和 165k 行代码。在JSP/JSTL页面上,我们有超过266个页面和78k行代码。任何可以零碎完成的事情都很棒,而不是重写大部分代码/框架。
有什么想法吗?
We started building our website / application back in 2006, and chose to use appFuse 1.9.4 as our application framework. There isn't a direct upgrade path to AppFuse 2.x and now AppFuse has been discontinued.
We're stuck on Spring 2.0 and Hibernate 3.2 and we're using JSTL, along with XFire (and SOAP).
We'd like to upgrade our framework to take advantages of some of the new programming paradigms (like Annotations, and moving to CXF) and allow our programming group more flexibility and faster development cycles.
Grails looks like a possibility, as does Roo.
But, we have more than 850 java source code files and 165k lines of code. On the JSP / JSTL page, we have more than 266 pages and 78k lines of code. Anything that can be done piecemeal would be great, rather than re-writing the majority of the code / framework.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Anthony - 我对 AppFuse 不太了解,但我可以对移植到 Grails 发表评论。最重要的是,当您全力以赴时,Grails 效果最佳。 Grails 确实支持本机 JSP 和 GSP;我曾尝试在同一个项目中混合旧版 JSP 和新 GSP,但最终只是花时间将所有内容移植到 GSP 以便于维护。当使用 Grails 控制器时,控制器层逻辑确实效果最好(事实上,我不确定您是否可以在 Grails 中使用任何其他控制器框架(例如 Servlet))。您的服务/模型层可能是移植的最佳选择,因为 Grails 在控制器层(POJO、EJB、Spring Beans 等)下面非常灵活。
因此,在不太了解 AppFuse 的情况下,我的猜测是您将能够重用某些视图层(至少您必须修改页面以使用新的控制器导航),您将拥有移植整个控制器层,您将能够重用大部分服务和域层。
Anthony- I don't know a great deal about AppFuse, but I can comment on porting to Grails. The bottom line is that Grails works best when you go all-in. Grails does support native JSP along with GSP; I've tried to mix legacy JSP and new GSP in the same project but eventually just spent the time to port everything to GSP for ease of maintenance. The controller-layer logic really works best when using Grails controllers (in fact, I'm not sure you can use any other controller frameworks (e.g. Servlets) in Grails). Your service/model layer is probably the best candidate for porting since Grails is very flexible below the controller layer (POJOs, EJBs, Spring Beans, etc.).
So, again without knowing much about AppFuse, my guess is that you'l be able to reuse some of your view layer (at the very least you'll have to modify the pages to use the new controller navigation), you'll have to port the entire controller layer, and you'll be able to reuse most of your service and domain layer.