Giter Club home page Giter Club logo

openregistry-springbatch-poc's Introduction

openregistry-springbatch-poc

This project is a proof of concept showing how to use Spring Batch to feed identity data into Jasig OpenRegistry. A sample ERP XML data extract is read in via a Spring Batch job and processed against OpenRegistry APIs to populate the OpenRegistry database schema.

Jasig OpenRegistry https://wiki.jasig.org/display/OR/Home

Spring Batch http://static.springsource.org/spring-batch/

Install Oracle jdbc driver into a local maven repository

  • Download the driver's jar

  • mvn install:install-file -Dfile=ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar

Prepare the OpenRegistry and Spring Batch database tables

  • Create an Oracle schema to house OpenRegistry and Spring Batch tables

  • Run DDL scripts to create OpenRegistry tables

  • Run DDL script to create Spring Batch tables

  • Run DML scripts to populate necessary OpenRegistry reference data tables

  • See etc/dml/ and etc/ddl

Download and configure batch project

  • Either clone or download from Github the spring batch project into /opt/source/openregistry-springbatch-poc

  • Create configuration directory /etc/openregistry

  • Copy /opt/source/openregistry-springbatch-poc/etc/* to /etc/openregistry

  • Configure datasource related properties in /etc/openregistry/config/openregistry.properties

  • The example input file from ERP that the batch job is configured with is located here: /etc/openregistry/input/openRegLoad.xml

Build and run the batch job

  • Build the batch job executable jar from /opt/source/openregistry-springbatch-poc directory: ./build.sh

  • Go to /opt/source/openregistry-springbatch-poc/dist

  • Run the batch job: ./run_ps_to_or_batch.sh

After the batch job execution finishes, the log files for that run will be produced in that directory with the timestamp of the job execution invocation. At this point, examine the log file for the job execution status, any produced errors, etc. Also, on the successful execution, the data should be available in the OpenRegistry database in both system of record form as well as calculated form (PRS_* and PRC_* tables respectively)

openregistry-springbatch-poc's People

Contributors

dima767 avatar wgthom avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.