proxyTargetClass set true and false in same xml ignored
Hi
The documentation says "you can have multiple <aop-config/>
elements, with some configured to force CGLIB-based proxying and some not to." However, when I do exactly that Spring AOP only seems to care about the presence of CGLIB. I want to have JDK-proxies and CGLIB. Here my configuration:
Code:
<aop:config proxy-target-class="true">
<aop:aspect id="optimisticOperationRetry"
ref="optimisticOperationExecutor">
<aop:pointcut id="idempotentOperation"
expression="execution(* com.mucsillc.service.*.*(..))" />
<aop:around pointcut-ref="idempotentOperation"
method="doOptimisticOperation" />
</aop:aspect>
</aop:config>
<aop:config proxy-target-class="false">
<aop:aspect id="optimisticOperationRetry2"
ref="optimisticOperationExecutor2">
<aop:pointcut id="idempotentOperation2"
expression="execution(* com.fds.service.*.*(..))" />
<aop:around pointcut-ref="idempotentOperation2"
method="doOptimisticOperation" />
</aop:aspect>
</aop:config>
Any ideas?