aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-openstack-adapters/src
diff options
context:
space:
mode:
authorBrittany Plummer (bp896r) <bp896r@att.com>2020-05-14 18:39:43 -0400
committerBrittany Plummer (bp896r) <bp896r@att.com>2020-05-14 20:12:43 -0400
commit9a2efbdf1463f7bf0f2a0af8b8d7447ccd624269 (patch)
treec9f081adb4e17f803d502f915336f14410dad424 /adapters/mso-openstack-adapters/src
parent07e649d885ffb210b5c76cf8b17421dbd8439696 (diff)
Added primary annotation to asyncExecutor so that executor is used
Issue-ID: SO-2913 Change-Id: I7418f1279ff105cd2a47593dea0d26c0fed69cc9 Signed-off-by: Brittany Plummer (bp896r) <bp896r@att.com>
Diffstat (limited to 'adapters/mso-openstack-adapters/src')
-rw-r--r--adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/openstack/MsoOpenstackAdaptersApplication.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/openstack/MsoOpenstackAdaptersApplication.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/openstack/MsoOpenstackAdaptersApplication.java
index d9a83e6a9a..8e10e72fe7 100644
--- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/openstack/MsoOpenstackAdaptersApplication.java
+++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/openstack/MsoOpenstackAdaptersApplication.java
@@ -27,6 +27,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Primary;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -63,6 +64,7 @@ public class MsoOpenstackAdaptersApplication {
}
@Bean
+ @Primary
public Executor asyncExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setTaskDecorator(new MDCTaskDecorator());