I was fortunate enough to start a new life with the Grail. However, many people ask me how to add Groovy and / or Grails to the legacy Java / JSP web application. Do people have experience or recommendations on how best to incorporate Groovy and Grails into a large legacy application?
This IBM Developerworks article details how to use Grails with your old database .
A tool that can help map legacy databases to grails domain objects, GRAG is the Grails application generator . This is a handy tool that helps generate mapping classes for you.
The third option is to not use Grails for the gorm / domain level. Instead, since it works well with Java, you can create services that invoke existing legacy Java code for business logic and persistence .
I hope one of these approaches will work for you.
, , Grails Enterprise Java. , , . , . , .
jsps grails (grails Java- hibernate, , , ), jsp/, grails. spring , , .
, , , spring .
, Groovlets gsp web.xml jar, .
http://www.ibm.com/developerworks/java/library/j-pg03155
jar groovlets.
groovy -1.5.7.jarASM-2.2.jarANTLR-2.7.6.jar
gsp.
, , " grails/ groovy" , grails - , "add" new, , , .
, Grails - , Grails Java- , . Java Grails . Groovy Java- .
Java, . Grails Spring MVC, Hibernate Java-, , Java , Grails Java-.