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