All, I'm trying to change "ComponentContext.getComponent(RmapDao.class)" to using @Inject, but I can't get the Dao object even after adding a configuration file with below information.
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd" > <bean id="domainDaoImpl" class="com.cloud.domain.dao.DomainDaoImpl" /> <bean id="accountDaoImpl" class="com.cloud.user.dao.AccountDaoImpl" /> <bean id="userDaoImpl" class="com.cloud.user.dao.UserDaoImpl" /> </beans> Can anyone show me what needs to be fixed? Thanks Alex Ough