diff --git a/batch/pom.xml b/batch/pom.xml index 7c52b6d4..25c2f309 100644 --- a/batch/pom.xml +++ b/batch/pom.xml @@ -3,7 +3,7 @@ itembackoffice fr.abes.item - 2.4.3 + 2.4.4-SNAPSHOT 4.0.0 jar diff --git a/batch/src/main/resources/application-dev.properties b/batch/src/main/resources/application-dev.properties index 47140b3f..d3b9c114 100644 --- a/batch/src/main/resources/application-dev.properties +++ b/batch/src/main/resources/application-dev.properties @@ -29,6 +29,7 @@ sudoc.serveur= sudoc.port= #login permettant de tester si le CBS répond sudoc.login= +sudoc.poll= batch.min.hour=8 batch.max.hour=20 diff --git a/batch/src/main/resources/application-prod.properties b/batch/src/main/resources/application-prod.properties index 61c87415..febd6c69 100644 --- a/batch/src/main/resources/application-prod.properties +++ b/batch/src/main/resources/application-prod.properties @@ -30,6 +30,7 @@ sudoc.serveur= sudoc.port= #login permettant de tester si le CBS répond sudoc.login= +sudoc.poll= batch.min.hour=8 batch.max.hour=20 diff --git a/batch/src/main/resources/application-test.properties b/batch/src/main/resources/application-test.properties index 61c87415..febd6c69 100644 --- a/batch/src/main/resources/application-test.properties +++ b/batch/src/main/resources/application-test.properties @@ -30,6 +30,7 @@ sudoc.serveur= sudoc.port= #login permettant de tester si le CBS répond sudoc.login= +sudoc.poll= batch.min.hour=8 batch.max.hour=20 diff --git a/core/pom.xml b/core/pom.xml index 30c4c101..8c4e37ae 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -3,7 +3,7 @@ itembackoffice fr.abes.item - 2.4.3 + 2.4.4-SNAPSHOT 4.0.0 jar diff --git a/core/src/main/java/fr/abes/item/service/impl/TraitementService.java b/core/src/main/java/fr/abes/item/service/impl/TraitementService.java index b0e8ed33..b0d1e11d 100644 --- a/core/src/main/java/fr/abes/item/service/impl/TraitementService.java +++ b/core/src/main/java/fr/abes/item/service/impl/TraitementService.java @@ -28,6 +28,9 @@ @Service public class TraitementService implements ITraitementService { + @Value("${sudoc.poll}") + private Integer poll; + @Value("${sudoc.serveur}") private String serveurSudoc; @@ -42,7 +45,7 @@ public class TraitementService implements ITraitementService { private DaoProvider dao; public TraitementService() { - cbs = new ProcessCBS(); + cbs = new ProcessCBS(poll); } @Override diff --git a/pom.xml b/pom.xml index c1c77ab4..24b20eb7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ fr.abes.item itembackoffice - 2.4.3 + 2.4.4-SNAPSHOT core web diff --git a/web/pom.xml b/web/pom.xml index 7fecaae6..3fa98efe 100644 --- a/web/pom.xml +++ b/web/pom.xml @@ -3,7 +3,7 @@ itembackoffice fr.abes.item - 2.4.3 + 2.4.4-SNAPSHOT 4.0.0 jar diff --git a/web/src/main/resources/application-dev.properties b/web/src/main/resources/application-dev.properties index 46b77077..9e677050 100644 --- a/web/src/main/resources/application-dev.properties +++ b/web/src/main/resources/application-dev.properties @@ -30,6 +30,7 @@ sudoc.serveur= sudoc.port= #login permettant de tester si le CBS répond sudoc.login= +sudoc.poll= # Configuration des logs logging.config=classpath:log4j2-dev.xml diff --git a/web/src/main/resources/application-prod.properties b/web/src/main/resources/application-prod.properties index 6212d385..bf779fe9 100644 --- a/web/src/main/resources/application-prod.properties +++ b/web/src/main/resources/application-prod.properties @@ -30,6 +30,7 @@ sudoc.serveur= sudoc.port= #login permettant de tester si le CBS répond sudoc.login= +sudoc.poll= # Configuration des logs logging.config=classpath:log4j2-prod.xml diff --git a/web/src/main/resources/application-test.properties b/web/src/main/resources/application-test.properties index ebfb1a17..b539277f 100644 --- a/web/src/main/resources/application-test.properties +++ b/web/src/main/resources/application-test.properties @@ -30,6 +30,7 @@ sudoc.serveur= sudoc.port= #login permettant de tester si le CBS répond sudoc.login= +sudoc.poll= # Configuration des logs logging.config=classpath:log4j2-tests.xml