Jan 23rd, 2012, 06:53 PM
Map Controllers from Jar
I am writing a monitoring app in Grails 1.3.7. I would like to map some controllers defined in a separate jar (Spring Batch Admin to be exact) so I can embed those actions in my application. Is it possible to map to Spring annotated Controllers located on the classpath (and written in Java) in Grails? Also, these controllers are already mapped via Spring in the jars, is it possible to bootstrap the existing Url Mappings (xml) in Grails or could I repeat the mappings in my Grails URL Mappings to use them natively in my app?
Just lookin to see if this is possible and what some ways would be if it is. I'd really like to re-use these controllers within my application. It's easy to do in Java, just not sure about Grails.
Thanks in advance