I wonder if you might be best served creating the parent bean factory in
it's own process, then hooking back up to it when it's created?

Am I right in rephrasing the problem you are having, is the portion of time
when the parent bean factory is gone, and current requests are trying to
access objects in the bean factory?

100 objects isn't that many to create, especially on CF9 and above. The
better question is what is required internally to instantiate all of those
objects? Do you have complex init() depenencies?


DW


On Mon, Nov 5, 2012 at 3:33 PM, Brian G <[email protected]> wrote:

> Quick Q - if I have a parent bean factory, will reloadBeanFactory set to
> false really do much for me?
>
> My read of the code is that, reloadBeanFactory=false will save the full
> instantiation of ModelGlue.gesture.loading.ColdSpringBootstrapper and
> instead call application[modelglue_app_key].reset() but I'm not clear how
> different that is.  Just recreating the bean factory for Model Glue happens
> pretty quickly; it's my parent bean factory (application.cs) that has 100
> singletons in it which takes a long time.
>
> .reset() runs:
>
>     <cfset structClear(this.messageListeners) />
>     <cfset structClear(this.controllers) />
>     <cfset structClear(this.eventHandlers) />
>     <cfset structClear(this.eventTypes) />
>
> Does this force pretty much the same reinit process as in Unity if you are
> using a parent bean factory?
>
>
> Brian
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en




-- 
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to