Hi all,
To manage transactions in my app, I've declared a txManager, associated with a BeanNameAutoProxyCreator
Currently, I've this configuration :
Code:
<bean id="txBeanNameProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<list>
<value>*-manager</value>
</list>
</property>
<property name="interceptorNames">
<list>
<value>txInterceptor</value>
</list>
</property>
</bean>
The problem is :
- 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