Sunday, October 26, 2008

GWT & Comet Spring Integration

I'm making good progress integrating GWT & Comet with Spring. I just posted an update to the Spring by Example Web Module for a basic Spring GWT Controller and Spring Bayeux configuration for Comet on Jetty. Basically there is a Spring version of the Bayeux implementation and can configure it completely in Spring. Then it can be injected into BayeuxService implementations and there is a servlet that gets Bayeux from Spring instead of creating it. I think I'll possibly have a GWT version of the Dojo Comet Chat example soon.

Wednesday, October 22, 2008

Spring by Example RSS Feed

The Spring by Example main RSS feed has been updated to a new url, which is http://www.springbyexample.org/feed/. Before the feed was generated by the TWiki so it wasn't also including the static examples. Also, sometimes something on the TWiki was accidentally posted before it was ready and then stayed in a bad state on sites like Google Reader. The TWiki RSS feed is still active.

Spring by Example Update

I finally had time to update the example site and add a new module, but I've decided to start posting Spring by Example site specific postings on it's own blog (http://springbyexample.blogspot.com/). I'll use this blog for more about what I've been doing.

The new module is Custom ServletContext Scope Module. It let's you use Spring's custom scope to store beans in the web applications ServletContext. I needed this to refactor some old webapps that were sharing data using a static class and wanted to have them share the data in the ServletContext, but I don't have time to completely refactor them.

I also have a simple OSGi example using the Spring dm Server that I'll post and write up when I have time. Otherwise I've been putting a lot of time into working on GWT, Comet, and Spring integration. I'll eventually post more on this too when I get further along.

Saturday, October 11, 2008

Commons Configuration with Spring Modules

DanielP has kindly posted an example on how to use Commons Configuration with Spring Modules for loading properties from a database and using them in your Spring Configuration. Thank you DanielP.