That was the wrong button, accidentally sent my message :) . To finalize my text:
I was recently looking into the Blossom project, which seems to use the ContextLoaderServlet which is deprecated, and even gone in Spring 3. We have created a module that takes advantage of the ContextListener. Magnolia modules that have a Spring context, can configure this in their config node in the Magnolia Admincentral. Even Spring beans can be configured in the config node. This may be useful for properties that this service may need, like smtp server host, Solr server url, or some remote invocation URL, etc, etc. By using default Spring functionality the Services are injected into the Magnolia module The configuration of the contexts and beans are observed by our Spring module. The module then loads all of these contexts and beans in the root Spring WebContext. So, after a config change, the context is updated runtime (no restart needed) !! In this way the configured context is available for every component that has access to the webContext. For example: we are using the org.springframework.web.servlet.DispatcherServlet in /server/filters/servlets to host some Spring RESTful services. These controllers can have direct access to this context in this way. In my opinion, this module would be a great base-integration of Spring contexts and configurable Spring beans, that other modules can use. Best regards, Erik Alphenaar, Net Effect Holding B.V. On Tue, 2009-11-10 at 17:13 +0100, Erik Alphenaar wrote: > Good afternoon, > > We have been experimenting with all kinds of Spring integration in the > past, to enable a seamless integration between Magnolia and external > services. > > By seamless I mean that I can use the Magnolia Module structure to > expose any Spring services/beans it may have, and use those services in, > for example, ParagraphRenderers etc. without the services having to know > anything of Magnolia. > > > We have actually created a nice integration as such. > > > > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
