Wednesday, February 28th, 2007
Gabi S. in what appears to be her first blog post has already started off with a bang. In tutorial form she shows how to integrate GWT with Spring.
To integrate [the GWT application] with Spring we only have to register our GWT servlet in our web.xml so we can simply use Spring’s ServletForwardingController to call services by name. We also have to modify a bit our GWT client to reflect a path change we have to do…The ServletWrappingController [defined in the Spring application context] controls the RemoteServiceServlet’s lifecycle completely, emulating the servlet-container.
So once you have instantiated your GWT services with Spring, you are free to use all of that good stuff, like inversion of control (IoC), aspect oriented programming (AOP), etc. For those wanting a quick overview of Spring, the “swiss army chainsaw of Java and .NET frameworks,” have a look here.
Note: we are using Spring on the server side here, not the client side. For IoC in the browser, see the earlier post on JDA.
Update: The misspelling of “Demystified” in the referenced blog post did not trigger the inner speller in me. It has been fixed.
Posted by Dietrich Kappe at 9:30 am