summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/application-context.xml
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/main/resources/application-context.xml')
-rw-r--r--catalog-be/src/main/resources/application-context.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/catalog-be/src/main/resources/application-context.xml b/catalog-be/src/main/resources/application-context.xml
index b34ad69ffb..b3dcbc1de1 100644
--- a/catalog-be/src/main/resources/application-context.xml
+++ b/catalog-be/src/main/resources/application-context.xml
@@ -14,8 +14,8 @@
base-package= "org.openecomp.sdc.be.components.health,
org.openecomp.sdc.be.servlets,
org.openecomp.sdc.be.externalapi.servlet,
- org.openecomp.sdc.be.components.scheduledtasks,
- org.openecomp.sdc.be.model.jsontitan.utils">
+ org.openecomp.sdc.be.components.scheduledtasks
+ ">
</context:component-scan>
<bean class="org.openecomp.sdc.be.dao.config.DAOSpringConfig"/>
@@ -24,6 +24,14 @@
<bean class="org.openecomp.sdc.config.CatalogBESpringConfig"/>
+ <aop:config>
+ <aop:aspect id="lockAspect" ref="componentLockAspect">
+ <aop:pointcut id="lockingTransaction" expression="@annotation(org.openecomp.sdc.be.components.impl.lock.LockingTransactional) and args(componentId, componentType,..)"/>
+ <aop:around method="lock" arg-names="proceedingJoinPoint,componentId,componentType" pointcut-ref="lockingTransaction"/>
+ </aop:aspect>
+ </aop:config>
+
+
<util:properties id="elasticsearchConfig" location="file:${config.home}/elasticsearch.yml" />
</beans>