Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating grails into an existing spring application?

What if you don't want to start a separate project for grails but instead sneak it into an existing webapp?

I have to build an admin interface/crud for some new entities and thought it would be a perfect way to learn grails.

like image 969
D. Wroblewski Avatar asked May 19 '09 12:05

D. Wroblewski


1 Answers

I'm trying to make one application with a Grails app and a Spring app.

I've tried to sneak the Grails App into the Spring one, but this is "impossible". It's easier to sneak the Spring app into the Grails app. Grails knows what Spring is, but Spring has no idea of what Grails is.

In this article you can find useful information about how to use your hibernate mapping files or annotations in Grails, so you don't have to remap everything. Also you can use all your java clases (put them into src/java). You can put the beans defined in the ApplicationContext.xml in conf/spring/resources.xml. You can leave them in ApplicationContext, but I've had some problems. I don't have ended the job (almost) and it looks good.

like image 81
HED Avatar answered Sep 23 '22 05:09

HED