开发者

Can Spring and Struts run in the same JVM?

Does anyone have any warnings against using Spring on an app server that's already running Struts? I'm a little new to both Struts and Spring, so I'm not sure if they share any of the same dependencies. I've just joined a n开发者_C百科ew team and we run some pretty critical web apps with Struts. For what it's worth with my environment the server is Apache Tomcat 5.5.25 and we're working with the Java JDK 1.5.0_12 . I wouldn't be necessarily trying to use any of the same resources (i.e. Database connections), but I wouldn't want some JRE component to blowup due to my application.

Thanks in advance!


sure you can do it. See for example.

http://www.javabeat.net/articles/70-integrating-struts-with-spring-1.html

http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html


There is no problem to run both together, I`ve already done that and was great!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜