Hi Joseph,

Since you say that many of your pages will have content i would suggest that 
you integrate it within Magnolia. This is not as hard as it sounds. There's two 
parts to it. 

First you need to change how your app is started. Create a module for magnolia 
and start your spring application when the module is started by Magnolia. 
Usually you have Springs ContextLoaderServletListener in web.xml, remove it and 
do the same thing in your module using 
BlossomModuleSupport.initRootWebApplication().

Secondly you need to change how requests are dispatcher to your 
DispatcherServlets. Magnolia will serve all requests with its filters, expect 
those configured to be bypassed. There's two options here, either keep your 
DispatcherServlets in web.xml and change their classes to 
info.magnolia.module.blossom.web.InstallationAwareDispatcherServlet. Or 
configure them in your modules descriptor [1].

Also, see my response to a this question where i basically describe the same 
thing. 
http://forum.magnolia-cms.com/forum/thread.html?threadId=c67f6b13-52d9-4304-a214-160ccec436bf&page=1

[1] 
http://documentation.magnolia-cms.com/reference/module-mechanism.html#Servlets


Hope that helps,
Tobias

On Jul 28, 2011, at 2:20 AM, Magnolia Forums (on behalf of Joseph Shoop) wrote:

> 
> Looking over the documentation and sample app for Blossom it looks great. 
> Perhaps this is not the right place, I am coming from a Spring background, 
> and not a Magnolia background, but is Blossom the best way to add Magnolia to 
> an existing Spring site? I have an existing Spring MVC app and would like to 
> add Magnolia capabilities to many of the pages. I am not really understanding 
> how the architecture works, do I need to have Magnolia running in my Spring 
> app, or just Blossom, and Magnolia running on another instance/machine?  Is 
> Blossom the best way to do this, or just integrate into the filter chain?
> Sorry, couldn't find any basic "Drop Magnolia into Spring" links....if you 
> have any suggestions, I would really appreciate it! 
> 
> Joe
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=8b5a15ba-fd93-45ff-b996-bfb3f8302de2
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to