Guillaume Laforge wrote:
> On Mon, May 3, 2010 at 23:57, Sean Gilligan <
se...@msgilligan.com> wrote:
>> I don't really have much to say here, as I'm not a Spring MVC expert at all :-)
>>
I'm pretty comfortable with Spring MVC, but am a little nervous about
using dynamic beans, calling the Groovy interpreter directly, etc.
> I'm not sure putting Spring into the mix would really help things
> here,
Spring would provide the ability to configure the app differently for
the dev server and for the production server (script vs. compiled mode)
and would provide some support for reloading code. It would also
provide a simple MVC architecture.
> in that sense that Spring also adds some additional setup time,
>
I've used an extremely lightweight config of Spring/SpringMVC on GAE and
it loads about 4x a fast as a Gaelyk template. I should probably re-run
the test. I have seen complaints about Spring on GAE, but some Spring
apps do a tremendous amount of work on load time (e.g. Grails,
Hibernate, AOP, etc)
I will admit, that I have other reasons for wanting to use SpringMVC,
and the approach could be used with simple servlets and a custom config
layer.
One advantage to SpringMVC is that Grails supports integration of
SpringMVC controllers, so it should be possible to write some
controllers that work well in a simple #GAE environment but could also
be used in Grails.
> And since you'd still use Groovy views, you'd still have the
> compilation overhead -- till we find some ways to have pre-compiled
> templates but then you don't really need to add Spring anymore.
>
I was thinking that Spring might help with the pre-compiled templates,
but I could be wrong. I guess I could dive in and try to get a proof of
concept. (as soon as I have a free day...) I assume you'd be able to
help with any Groovy-specific questions I might have...
Any suggestions on anyone else to talk to before starting, or any other
projects (besides SpringMVC itself) I should talk to?
Thanks,
Sean