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/57f1b025
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/57f1b025
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/57f1b025

Branch: refs/heads/4.1
Commit: 57f1b0254c04602d958fae39398c7edf3cde26d4
Parents: 39ac17f
Author: Kelven Yang <[email protected]>
Authored: Wed Mar 27 14:51:58 2013 -0700
Committer: Chip Childers <[email protected]>
Committed: Thu Mar 28 01:59:18 2013 +0000

----------------------------------------------------------------------
 awsapi/conf/applicationContext.xml.in |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/57f1b025/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>

Reply via email to