Fork me on GitHub

Import batch

Assembly

In order to generate a package containing all the files necessary to launch the import batch, you need to use the command mvn assembly:assembly

This will generate the archive batch-dila-import-xml-<VERSION>.tar.gz . You can extract the archive in any folder on your server.

Configuration

Before running the batch, you can configure it by modifying the file conf/configuration.properties

Property Description
individual.archive.url, association.archive.url, professional.archive.url and local.data.archive.url These properties specify where to get the archives containing the XML streams to download.
individual.archive.name, association.archive.name, professional.archive.name and local.data.archive.name These properties specify the names of the archives to download.
archives.dir.path.tmp Absolute Directory where to store the downloaded archives.
individual.archive.dir.path.extract.final, association.archive.dir.path.extract.final, professional.archive.dir.path.extract.final and local.data.archive.dir.path.extract.final The absolute directories used to store the XML streams. The temporary storage directories can also be specified (properties ending with tmp instead of final).
jdbc.url Database host to use
jdbc.username and jdbc.password Database user and password
proxy.host, proxy.port, proxy.username and proxy.password Proxy information, leave blank if no proxy is used.
N.B. : make sure the directories used to store the temporary and final data is not read-only.

Run

Once you've extracted the archive generated through maven assembly and configured it using the properties described above, you can launch the script bin/batch-dila-import-xml.sh.