Peter, that is exactly what I want to do.   For some reason I was thinking
the way that parentBeanFactoryScope worked is that it would add whatever CS
was defined in the Mach-II property to an existing parent bean factory
rather than just using the parent directly.  I am not sure why i was making
that so difficult in my head.  This is perfect!

Thanks for setting me back on track.


~Dave Shuck
/*****************************************
@dshuck - http://daveshuck.com
DFW CFML User Group - @dfwcfml
*****************************************/



On Mon, May 2, 2011 at 5:48 PM, Peter J. Farrell <[email protected]> wrote:

> Dave Shuck said the following on 05/02/2011 05:40 PM:
> > I am experimenting with putting multiple Mach-II applications inside a
> > Mura app.  Within Mura, you can put a ColdSpring configuration in
> > /config/coldspring.custom.xml.cfm and those bean definitions get
> > pulled into the global service factory instance. I am hopting to use
> > this global beanFactory (created as application.serviceFactory) and
> > make it available to my Mach-II applications.  I am considering
> > modifying the ColdSpring property with a parameter like
> > "useExistingServiceFactoryInstance" and
> > "existingServiceFactoryInstanceVariableName" so that I can simply have
> > it use a reference of that instance.  Has anyone done anything like
> > this or have any thoughts on why this would be a bad idea? :)
> I'd just define your Mach-II application to use the Mura CS instance as
> parent factory.  In this case, the base module of Mach-II would be a
> child factory of CS:
>
>        <!-- Indicates a scope to pull in a parent bean factory into a
> child bean factory
>             Default: application
>        <parameter name="parentBeanFactoryScope" value="application"/>
>        -->
>
>        <!-- Indicates a key to pull in a parent bean factory from the
> application scope
>            Default: FALSE
>        <parameter name="parentBeanFactoryKey" value="serviceFactory"/>
>        -->
>
> It would look like this:
>
> Mura CS Instance (parent) -> Mach-II Base Module CS Instance (child) ->
> Mach-II Modules CS Instance(s) (grandchildren)
>
> .pjf
>
> --
> Peter J. Farrell
> [email protected]
> [email protected]
> http://blog.maestropublishing.com
> Identi.ca / Twitter: @maestrofjp
>
> --
> To post to this group, send email to
> [email protected]
> For more options and to unsubscribe, visit this group at
> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>
> SVN: http://svn.mach-ii.com/machii/
> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
>

-- 
To post to this group, send email to [email protected]
For more options and to unsubscribe, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to