I am using Beannameautoproxycreator for managing transaction. The log file says that " No Hibernate Session bound to thread, and
configuration does not allow creation of non-transactional one here"
But if i use TransactionProxyFactoryBean things are fine.
<bean id="matchAOWMethodsTxInterceptor" class="org.springframework.transaction.interceptor .TransactionInterceptor">
<property name="transactionManager">
<ref local="aowTxManager"/>
</property>
<property name="transactionAttributeSource">
<value>
com.uprr.app.aow.service.spring.aowadmin.Registrat ionImpl.get*=PROPAGATION_REQUIRED,readOnly
com.uprr.app.aow.service.spring.aowadmin.Organizat ionImpl.get*=PROPAGATION_REQUIRED,readOnly
com.uprr.app.aow.service.spring.aowadmin.Registrat ionImpl.create*=PROPAGATION_REQUIRED
com.uprr.app.aow.service.spring.aowadmin.Organizat ionImpl.rename*=PROPAGATION_REQUIRED
com.uprr.app.aow.service.spring.aowadmin.Organizat ionImpl.change*=PROPAGATION_REQUIRED
com.uprr.app.aow.service.spring.aowadmin.Organizat ionImpl.add*=PROPAGATION_REQUIRED
com.uprr.app.aow.service.spring.aowadmin.AdminSear chUtilsImpl.*=PROPAGATION_REQUIRED,readOnly
</value>
</property>
</bean>
<bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
<property name="interceptorNames">
<list>
<idref local="matchAOWMethodsTxInterceptor"/>
<!-- <idref bean="hibInterceptor"/> -->
</list>
</property>
<property name="beanNames">
<list>
<idref local="AowAdminSearchUtils"/>
<idref local="AowAdminOrganization"/>
<idref local="AowAdminRegistration"/>
</list>
</property>
</bean>


Reply With Quote