springframework.orm.hibernate.HibernateTransaction Manager
Hi all,
I am using Spring/Hibernate and i need some help !
I'm using the org.springframework.orm.hibernate.HibernateTransac tionManager for test purposes and when i look at the logs , it works (!) but my Session is closed many times , so my entities are detached from their session and i lose the transparent persistence...
My configuration must be wrong, thanks for any help
Code:
...
<bean id="managerTarget"
class="com.acme.ManagerImpl">
<property name="dao">
<ref bean="myDao"/>
</property>
</bean>
<bean id="manager" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="target">
<ref bean="managerTarget"/>
</property>
<property name="transactionAttributes">
<props>
</props>
</property>
</bean>
<!-- Transaction manager -->
<bean id="transactionManager" class="org.springframework.orm.hibernate.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
...