To manage transactions in my app, I've declared a txManager, associated with a BeanNameAutoProxyCreator
Currently, I've this configuration :
The problem is :
<bean id="txBeanNameProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
- All beans names terminated by "-manager" are autoproxied
- When a bean needs transactions support, I must give it a name terminated by "-manager"
My question is : is there any possibilities to autoproxy by package name instead of bean name. For example, by indicating that all classes (and their associated beans) in the package "com.mypackage.manager" must be autoproxied ?
Thx for your response