chen7855
Oct 6th, 2004, 10:10 AM
I am getting error:
Attribute "factory-bean" must be declared for element type "bean".
when configuring beans as follows:
<bean id="dataSourceFactory" class="DataSourceFactory"/>
<bean id="dataSource" factory-bean="dataSourceFactory" factory-method="getDataSource">
<constructor-arg>
<value>XDocsLocalDBPool</value>
</constructor-arg>
</bean>
It seems to complain "dataSourceFactory" is not of type "bean" which I am not sure why. Also, could you please let me know if I can use <constructor-arg> as shown above?
Thanks,
Hannah
Attribute "factory-bean" must be declared for element type "bean".
when configuring beans as follows:
<bean id="dataSourceFactory" class="DataSourceFactory"/>
<bean id="dataSource" factory-bean="dataSourceFactory" factory-method="getDataSource">
<constructor-arg>
<value>XDocsLocalDBPool</value>
</constructor-arg>
</bean>
It seems to complain "dataSourceFactory" is not of type "bean" which I am not sure why. Also, could you please let me know if I can use <constructor-arg> as shown above?
Thanks,
Hannah