Lordy no...

<setting name="BeanFactoryLoader" value="ColdSpringLoader"
/>
<setting name="beanMappings"
value="/appname/config/beans/coldspring.xml" />

in coldspring.xml set up the DSN as set forth in my
previous email.

<beans>
{xml from previous email}
</beans>

Then in your app call:

<cfset var dsn = getModelGlue().getConfigBean("dsn")>

And from now on, set up your beans using one bean
definition file instead of separate ones, and use the above
syntax to ask modelglue to fetch them from the CS
beanFactory instead of the old-style method of hitting
individual bean def files.

I hope this is helping... I know it made me go look up a
few items, so I learned a few details today too.

Thanks,
J

On Fri, 5 May 2006 15:40:44 -0400
 "Brian Billings" <[EMAIL PROTECTED]> wrote:
> If I do this in my controller it works, But Im sure this
> is not how
> the framework was intended to be used.
> 
> <cfset variables.config =
>
createobject('component','modelglue.bean.BeanFactory').init('/CSTEST/config/beans').createBean('Config.xml')
> />
> 
> On 5/5/06, Brian Billings <[EMAIL PROTECTED]>
> wrote:
> > I guess where I am lost is that this bean never really
> existed
> > anywhere. It was created on the fly by modelglue.. I
> would just put
> > the XML file in the folder and I could call it.
> >
> > Are you suggesting that I actually make a bean, with
> getters and
> > setters and define it in the ColdSpring bean
> definitions?
> >
> > I actually kinda liked the the fact that model glue did
> all of that
> > for me, since these values really werent part of my
> model, just my web
> > server folder and dsn configuration.
> >
> > On 5/5/06, Dave Ross <[EMAIL PROTECTED]> wrote:
> > >
> > > If the bean you want has an id of "Config", then you
> would use
> > > getModelGlue().getConfigBean("Config")
> > >
> > > ChiliBeans was one bean per xml file. ColdSpring is
> many beans per xml file.
> > >
> > > On 5/5/06, Brian Billings
> <[EMAIL PROTECTED]> wrote:
> > > > All,
> > > >
> > > > In order to set up coldspring I had to make my bean
> mapping map to the
> > > > CS xml file like below:
> > > >
> > > >    <setting name="beanMappings"
> > > value="/CSTEST/config/beans/CSTest.xml" />
> > > >
> > > > Before I only had it set to /CSTEST/config/beans
> and I was able to use
> > > > getModelGlue().getConfigBean(" Config.xml")  in my
> controller for a
> > > > file name Config.xml that resided in the "beans"
> directory.
> > > >
> > > > Now that I implemented coldspring
> > > > getModelGlue().getConfigBean("Config.xml")  does
> not work. How should
> > > > I manage that config data now?
> > > >
> > > >
> > >
> > >
> >
> >
> 


Reply via email to