O Spring não ta injetando os meus managers…
tenho eles declarados da seguinte forma:
@Bean(name = "usuarioAgendaManager")
@Transactional
public class UsuarioAgendaManagerImpl extends ManagerImpl<UsuarioAgenda, Long> implements UsuarioAgendaManager {
Porem quando acesso o view, eles vem nulo…
xml:
<context:annotation-config />
<context:component-scan base-package="br.com.romulo" />
<mvc:annotation-driven />
<tx:annotation-driven />
e
<tx:annotation-driven transaction-manager="transactionManager" />
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:datasource.properties</value>
</property>
</bean>
<!-- Data Source config -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="defaultTransactionIsolation" value="2" />
<property name="url" value="${jdbc.url}" />
<property name="driverClassName" value="${jdbc.driver}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
<property name="maxActive" value="50" />
<property name="logAbandoned" value="true" />
<property name="validationQuery" value="SELECT * FROM USUARIOS" />
<property name="testOnBorrow" value="true" />
</bean>
<bean id="sessionFactory"
class="net.sourceforge.sannotations.hibernate.AutomaticAnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="schemaUpdate" value="false" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
${hibernate.dialect}
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.transaction.flush_before_completion">false</prop>
<!-- <prop key="hibernate.current_session_context_class">thread</prop> -->
<prop key="hibernate.bytecode.use_reflection_optimizer">false</prop>
</props>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<sa:annotation-autoload />
Será q eesqueci de algo?