How do I get Model-Glue to use a pre-existing ColdSpring instance?
You can pass an instantiated ColdSpring factory to Model-Glue through the use of the ModelGlue_PARENT_BEAN_FACTORY variable.
This variable is set in the main index page of the application (usually index.cfm) and must contain a pre-initialized and configured ColdSpring bean factory. You may do any pre-processing, modification, string-replacement or configuration that makes sense for your application.
Take a look at the example index.cfm page in the ModelGlueApplicationTemplate and look for ModelGlue_PARENT_BEAN_FACTORY.
Parent Bean factories work in a hierarchical fashion. When a bean is asked for, first the application looks in the main application bean factory, and if the bean is not found, it looks in the parent bean factory. You can chain parent bean factories, if you like.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)