I have different context files
in springContext.xml I have a reference to a bean “dataSource” define in an other file: applicationContext-database.xml
why is this flag an error ❓
<<<<<<<<<<< springContext.xml >>>>>>>>>
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE beans PUBLIC “-//SPRING//DTD BEAN//EN” “http://www.springframework.org/dtd/spring-beans.dtd”>
<beans>
<!–
The bean dataSource is define in applicationContext-database.xml
It use the file hibernate.properties to load the values
–>
<bean id=”sessionFactory”
class=”org.springframework.orm.hibernate.LocalSessionFactoryBean”>
<property name=”dataSource”>
<ref bean=”dataSource” />
</property>
>>>>>