« "This is the story of Rael..." | Main | New Releases: Cocoon and Cowarp »

March 16, 2005

Cocoon and Spring

I'm currently working on a better integration of Spring into Cocoon. Currently, of course you already can use Spring by using the spring servlet (filter) to initialize the application context.
My prototype currently allows to define an application context on a per sitemap base. In addition, a spring context defined at a parent sitemap will be the parent of the context defined at a sub sitemap.
Combined with the new classloading features of Cocoon 2.2 you can run different applications using different spring contexts at the same time. Of course, things like resource resolving etc. work on a per sitemap level as well.
And the final feature is that a getComponent() in flow or a lookup using a service manager is forwarded to the spring application context. So, there is no difference in using spring beans or avalon based components.
I hope to get everything working in the next days...stay tuned.

Posted by cziegeler at March 16, 2005 08:52 PM