Hi,
I'm trying to get the coldspring plugin to work in mach-ii but im having some trouble. I am able to get a service object from the bean factory in my listener's configure method but it doesn't seem like my DAO and Gateway objects have been injected into the service. Perhaps I am not calling it correctly so ill post my code to see if anyone can point out my problem.

Here is my xml config:
<?xml version="1.0" encoding="UTF-8"?>
<beans>
    <bean id="commentDAO" class="model.comment.commentDAO">
        <constructor-arg name="xmlpath">
            <value>/environment/thesandcasters/lounge.xml</value>
        </constructor-arg>
    </bean>
    <bean id="commentGateway" class="model.comment.commentGateway">
        <constructor-arg name="xmlpath">
            <value>/environment/thesandcasters/lounge.xml</value>
        </constructor-arg>
    </bean>  
    <bean id="loungeService" class="model.comment.loungeService">
        <constructor-arg name="commentDAO">
            <ref bean="commentDAO"/>
        </constructor-arg>   
        <constructor-arg name="commentGateway">
            <ref bean="commentGateway"/>
        </constructor-arg>        
    </bean>
</beans>

Here is my listener configure code:
<cfset variables.loungeService = getProperty("serviceFactory").getBean("loungeService") />

I am recieving the following coldspring exception:
coldspring.beanDefException - in C:\websites\extensions\components\coldspring\beans\BeanDefinition.cfc : line 128

Thanks in adavnce.

Reply via email to