From f866810dfd47fb8174f33564ecb02a45d886ba97 Mon Sep 17 00:00:00 2001 From: Antonis Lempesis Date: Mon, 11 Oct 2021 10:46:31 +0000 Subject: [PATCH] fixing properties --- .../java/eu/dnetlib/repo/manager/config/Config.java | 10 +--------- src/main/resources/application-compat.properties | 10 ++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 src/main/resources/application-compat.properties diff --git a/src/main/java/eu/dnetlib/repo/manager/config/Config.java b/src/main/java/eu/dnetlib/repo/manager/config/Config.java index d441b20..d348ed7 100644 --- a/src/main/java/eu/dnetlib/repo/manager/config/Config.java +++ b/src/main/java/eu/dnetlib/repo/manager/config/Config.java @@ -10,15 +10,7 @@ import java.io.IOException; @Configuration @ImportResource("classpath*:/gr/uoa/di/driver/app/springContext-commons.xml") +@PropertySource("application-compat.properties") public class Config { - @Bean - public PropertySourcesPlaceholderConfigurer getPropertySourcesPlaceholderConfigurer() throws IOException { - PropertySourcesPlaceholderConfigurer ppc = new PropertySourcesPlaceholderConfigurer(); - - ppc.setLocations((new PathMatchingResourcePatternResolver().getResources("classpath*:/**/springContext-*.properties"))); - ppc.setIgnoreResourceNotFound(true); - - return ppc; - } } diff --git a/src/main/resources/application-compat.properties b/src/main/resources/application-compat.properties new file mode 100644 index 0000000..53e5268 --- /dev/null +++ b/src/main/resources/application-compat.properties @@ -0,0 +1,10 @@ +subscription.manager.threads = 2 +subscription.manager.timeToLive = 3600 +notification.manager.threads = 2 + +is.registry.creatorId = ${transport.soap.baseAddress} + +openaire.db.driverClassName = org.postgresql.Driver +openaire.db.url = jdbc:postgresql://node1.d.openaire.research-infrastructures.eu:5432/dnet_openaire +openaire.db.username = dnet +openaire.db.password = dnetPwd \ No newline at end of file