Hi Dean,

You can achieve this by loading the servlet context in a different way than
in the Module class.

Go to server/filters/servlet , copy an existing context, set the following
values:
In mappings: create a mapping. This is not really used at all. I usually
do: /.module-name/
In parameters: contextConfigLocation
= classpath:META-INF/spring/path-to-your-blossom-servlet.xml

*And nodedatas in the servlet:*
class = info.magnolia.cms.filters.ServletDispatchingFilter
comment = whatever you prefer
enabled = true (can be set to false, this only results in the mapping not
to be available)
servletClass = info.magnolia.module.blossom.render.BlossomDispatcherServlet
servletName = name of your servlet

This way you can initialize multiple blossom contexts.


Rgds,
Erik


On Fri, Jan 3, 2014 at 11:40 AM, Dean Pullen (via Magnolia Forums) <
[email protected]> wrote:

> Hi all,
>
> We're trying to create multiple blossom modules.
> Obviously this means we're trying to initRootWebApplicationContext more
> than once, which is not valid.
>
> What is the Magnolia (or Tobias!) suggested methodology to support Blossom
> in more than one module.
>
> Additionally, what is the suggested way to utilise the Spring application
> context that is instantiated via a Blossom module, within other Spring
> non-Blossom modules?
>
> Cheers,
>
> Dean
>
> --
> Context is everything:
> http://forum.magnolia-cms.com/forum/thread.html?threadId=4b0fc6b5-915e-4745-b1c1-7c981c013258
>
>
> ----------------------------------------------------------------
> For list details, see
> http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>


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

Reply via email to