Hi Friends,
Ihave three methods which has to be called in one transaction from three different DAO's
method 1 addUsers() from UsersDaoImpl
method 2 addUserNgroups() from UserNGroupDaoImpl
method 3 addUserNRole() from UserNRoleDaiImpl
Thje transaction management is as follows for UsersDaoImpl.
Similarli the other two DAO's are configured seperatelyCode:<!-- dceUserDAO config starts here --> <bean id="dceUserDAO" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager"> <ref bean="transactionManager" /> </property> <property name="target"> <ref bean="dceUserDAOTarget" /> </property> <property name="transactionAttributes"> <!-- define the transaction specs here --> <props> <prop key="addGroupSafe">PROPAGATION_REQUIRED</prop> </props> </property> </bean> <bean id="dceUserDAOTarget" class="com.nucleus.dce.dao.hibernate.DceUsersDAOImpl"> <property name="sessionFactory"> <ref bean="sessionFactory" /> </property> </bean>
Plz help in this regard
Thanks & Regards,
S.Anand mohan


Reply With Quote
