From 9a2efbdf1463f7bf0f2a0af8b8d7447ccd624269 Mon Sep 17 00:00:00 2001 From: "Brittany Plummer (bp896r)" Date: Thu, 14 May 2020 18:39:43 -0400 Subject: Added primary annotation to asyncExecutor so that executor is used Issue-ID: SO-2913 Change-Id: I7418f1279ff105cd2a47593dea0d26c0fed69cc9 Signed-off-by: Brittany Plummer (bp896r) --- .../org/onap/so/adapters/openstack/MsoOpenstackAdaptersApplication.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'adapters/mso-openstack-adapters/src') 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()); -- cgit 1.2.3-korg