Skip to content

InseeFr/Queen-Batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Queen-Back-Office

Batch service for Queen
Batch using to implement QUEEN DB from xml files.

Requirements

For building and running the application you need:

  • JDK 21
  • Maven 3

Install and excute unit tests and ent-to-end tests

Use the maven clean and maven install

mvn clean install

Running batch

Use the following cmd :

echo $@
java8 -Xms64m -Xmx512m -classpath '/path/to/lib/*' -Dlog4j.configurationFile=file:/path/to/log4j2/config/log4j2.xml -Dproperties.path=/path/to/properties -DcheminLog=/path/to/log fr.insee.queen.batch.Lanceur $@
CODE_ERREUR=$?
echo "CODE ERREUR=$CODE_ERREUR"
exit $CODE_ERREUR

Properties file

Some properties are externalize in ${path.properties}/queen-bo.properties.
Bellow, properties to define :

fr.insee.queen.persistence.database.host = localhost
fr.insee.queen.persistence.database.port = 5433
fr.insee.queen.persistence.database.schema = XXXXXXX
fr.insee.queen.persistence.database.user = XXXXXXX
fr.insee.queen.persistence.database.password = XXXXXXX
fr.insee.queen.persistence.database.driver = org.postgresql.Driver
fr.insee.queen.folder.in=path/to/in
fr.insee.queen.folder.out=path/to/out
fr.insee.queen.paradata.id=idSu
fr.insee.queen.paradata.events=events

Before you commit

Before committing code please ensure,
1 - README.md is updated
2 - A successful build is run and all tests are sucessful
4 - All newly added properties are documented

Libraries used

  • spring-core
  • spring-jdbc
  • spring-oxm
  • spring-data-jpa
  • commons-lang3
  • postgresql
  • liquibase
  • spring-test
  • test-containers
  • json-simple
  • log4j
  • lunatic-model

Developers