Updated Branches: refs/heads/4.1 b0f4e2c5f -> 57f1b0254
CLOUDSTACK-1746: update usage server startup configuration Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/39ac17f7 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/39ac17f7 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/39ac17f7 Branch: refs/heads/4.1 Commit: 39ac17f7aa41983f0179c14a617e5422accd3b80 Parents: b0f4e2c Author: Kelven Yang <[email protected]> Authored: Wed Mar 27 14:31:05 2013 -0700 Committer: Chip Childers <[email protected]> Committed: Thu Mar 28 01:57:55 2013 +0000 ---------------------------------------------------------------------- usage/resources/usageApplicationContext.xml | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/39ac17f7/usage/resources/usageApplicationContext.xml ---------------------------------------------------------------------- diff --git a/usage/resources/usageApplicationContext.xml b/usage/resources/usageApplicationContext.xml index 0340038..fc67e0a 100644 --- a/usage/resources/usageApplicationContext.xml +++ b/usage/resources/usageApplicationContext.xml @@ -38,17 +38,16 @@ <!-- @DB support --> - <aop:config proxy-target-class="true"> - <aop:aspect id="dbContextBuilder" ref="transactionContextBuilder"> - <aop:pointcut id="captureAnyMethod" - expression="execution(* *(..))" - /> - <aop:around pointcut-ref="captureAnyMethod" method="AroundAnyMethod"/> - </aop:aspect> + <bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" /> - </aop:config> + <bean id="instantiatePostProcessor" class="com.cloud.utils.component.ComponentInstantiationPostProcessor"> + <property name="Interceptors"> + <list> + <ref bean="transactionContextBuilder" /> + </list> + </property> + </bean> - <bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" /> <bean id="ComponentContext" class="com.cloud.utils.component.ComponentContext" /> </beans>
