The coldspring file does need to register the bean and be told to inject it into the cfc. This is not necessary with the MG controllers because they are auto-wired.
In the CS xml file, make sure the bean is defined: <bean id="myDAO" class="path.to.myDAO" /> For the cfc you are injecting into: <bean id="myCFC" class="path.to.myCFC"> <property name="myDAO"> <ref bean="myDAO" /> </property> </bean> You should be able to find examples of this in the documentation also. Matt On 1/9/07, Joshua Scott <[EMAIL PROTECTED]> wrote:
Hello, This is a simple question. I have been using ColdSpring in ModelGlue to do inject beans into controllers etc... Now I need to use it to inject a simple datasource bean into a cfc in my model. I have the set function in the model but it the bean is not being injected. Is there something I need to do in the coldspring.xml file? Thanks for the help.... - Josh ------------------------------------------------ Joshua Scott Resonant Media Technologies, LLC. www.resonantmedia.com | blog.resonantmedia.com "It is impossible to get out of a problem by using the same type of thinking that it took to get into the problem." -- Albert Einstein
