Skip to content

Commit c3c7e7e

Browse files
committed
CLOUDSTACK-1746: update usage server startup configuration
1 parent 85971b5 commit c3c7e7e

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

usage/resources/usageApplicationContext.xml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,16 @@
3838
<!--
3939
@DB support
4040
-->
41-
<aop:config proxy-target-class="true">
42-
<aop:aspect id="dbContextBuilder" ref="transactionContextBuilder">
43-
<aop:pointcut id="captureAnyMethod"
44-
expression="execution(* *(..))"
45-
/>
46-
<aop:around pointcut-ref="captureAnyMethod" method="AroundAnyMethod"/>
47-
</aop:aspect>
41+
<bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" />
4842

49-
</aop:config>
43+
<bean id="instantiatePostProcessor" class="com.cloud.utils.component.ComponentInstantiationPostProcessor">
44+
<property name="Interceptors">
45+
<list>
46+
<ref bean="transactionContextBuilder" />
47+
</list>
48+
</property>
49+
</bean>
5050

51-
<bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" />
5251
<bean id="ComponentContext" class="com.cloud.utils.component.ComponentContext" />
5352

5453
</beans>

0 commit comments

Comments
 (0)