Ticket #331 (closed enhancement: wontfix)

Opened 17 years ago

Last modified 16 years ago

Allow ModelGlue to use a pre-existing ColdSpring instance without creating it's own bean factory

Reported by: Seth MacPherson Owned by: DanWilson
Priority: normal Milestone:
Version: 3.0.178 Severity: major
Keywords: Cc:

Description

Originally posted by Seth MacPherson on 10/29/2008 at 1:55 PM: entered by Ezra Parker on port to new system

Environment: ModelGlue 3 (rev: 113), ColdSpring 1.2, Brian Kotek's DynamicXmlBeanFactory.cfc

I would like to be able to create my own instance of ColdSpring utilizing the customizations provided by Brian Kotek's component and pass that instantiated bean factory to ModelGlue and avoid having "createBeanFactory" load it's own (see ColdSpringBootstrapper.cfc @ line 16). When ModelGlue loads its own "bf", it is passed my /config/coldspring.xml file which contains variables (${myServiceClassPath} = 'com.company.service.ServiceName') that are not resolved correctly by coldspring.beans.DefaultXmlBeanFactory and it errors out. ModelGlue will not load.

Change History

Changed 17 years ago by chrisblackwell

Can you not create your own bf using DynamicXmlBeanFactory? and set that as MG's parent bean factory in your apps index.cfm using

<cfset ModelGlue?_PARENT_BEAN_FACTORY = ??? />

and move your dynamic variables into the parent bf?

Changed 16 years ago by DanWilson

  • milestone changed from 3.0 Public Beta 1 to 3.2

Changed 16 years ago by DanWilson

  • status changed from new to closed
  • resolution set to wontfix
  • milestone changed from 3.2 to User Reported Issues (with full information)

This has been addressed in a wiki article. Use a parent bean factory, no change to Model-glue is necessary.

http://trac.model-glue.com/wiki/FAQs/HowDoIGetModelGlueToUseAPreexistingColdSpringInstance

Changed 16 years ago by cfgrok

  • milestone User Reported Issues (with full information) deleted

Milestone User Reported Issues (with full information) deleted

Note: See TracTickets for help on using tickets.