CLOUDSTACK-1825: Update AWSAPI server's XML configuration
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9dcaf508 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9dcaf508 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9dcaf508 Branch: refs/heads/master Commit: 9dcaf508c9bea022d1704ba545f935df84af782c Parents: c3c7e7e Author: Kelven Yang <kelv...@gmail.com> Authored: Wed Mar 27 14:51:58 2013 -0700 Committer: Kelven Yang <kelv...@gmail.com> Committed: Fri Mar 29 11:12:36 2013 -0700 ---------------------------------------------------------------------- awsapi/conf/applicationContext.xml.in | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9dcaf508/awsapi/conf/applicationContext.xml.in ---------------------------------------------------------------------- diff --git a/awsapi/conf/applicationContext.xml.in b/awsapi/conf/applicationContext.xml.in index 0a24df2..8b3a022 100644 --- a/awsapi/conf/applicationContext.xml.in +++ b/awsapi/conf/applicationContext.xml.in @@ -37,17 +37,19 @@ <!-- @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> - - </aop:config> + <!-- + @DB support + --> + <bean id="componentContext" class="com.cloud.utils.component.ComponentContext" /> <bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" /> - + + <bean id="instantiatePostProcessor" class="com.cloud.utils.component.ComponentInstantiationPostProcessor"> + <property name="Interceptors"> + <list> + <ref bean="transactionContextBuilder" /> + </list> + </property> + </bean> + </beans>