Adding Grails to an exsisting project
I have an existing system built in Java we currently 开发者_Python百科expand that by adding JSPs and Classes but we are given a deployed project. I would like to consider adding new features with Grails but I'm wondering how I can get both parts into the same context path in Tomcat. Is there any way to make this happen?
Grails classes compile to .class files just as java classes do. It is only a matter of packaging to deploy a mix of the two in the same .war. In theory (the way I understand it), there's no reason for it not to be possible. I would take apart a simple grails app .war and see if it requires anything special (*.xml) to run: if not, that you just have to package java and groovy binary files in a single .war.
Would like to hear how it went, though. :)
精彩评论