Folks,

I will try to explain the situation as best as I could. Can you have nested beanFactories e.g.

<bean id="AppManagerFactory" class="com.AppManagerFactory" />

<bean id="Manager1" factory-bean="AppManagerFactory" factory-method="createManager">
        <constructor-arg name="manager">
            <value>Manager1</value>
        </constructor-arg>
        <constructor-arg name="reactor">
            <ref bean="ReactorFactory"/>
        </constructor-arg>
</bean>

I am getting this error.

Bean creation exception during factory-method call (trying to call createManager on com.AppManagerFactory) Element 0 is undefined in a CFML structure referenced as part of an _expression_.: <br>The error occurred on line 474.

If I remove the reactorFactory from the second bean definition, it seems to work alright. Am I missing something?

Also, can I pass the ColdSpring bean factory as a constructor arguments.  So if one of those Service Object require another service object, I can call coldspringfactory.getBean().

Thanks,
Qasim

Reply via email to