Skip to content

jberet/jberet-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This module provides reusable batch components for common batch tasks. To use a jberet-support batch component, you will typically need to do the following:

  • include dependencies needed by the component;
  • reference the component in job XML in either of the following ways:
    • by its CDI bean name, typically the short class name de-capitalized;
    • by the name declared for the component in batch.xml in your application;
    • by the fully-qualified class name of the component.
  • configure any batch properties in job XML for the component.

The following is a list of reusable components in jberet-support:

Documentation

JBeret Docs contains JBeret User Guide and jberet-support Java Docs, which describes how to use and configure jberet-support batch components.

Build and Test

All tests in this module run batch jobs in Java SE environment, and therefore no application server is needed. There are 2 maven profiles for different testing setup:

  • allTests: include tests that need MongoDB and DynamoDbLocal server running. So users will need to start MongoDB and DynamoDb Local servers before running these tests. A docker-compose.yml is provided to easily start those servers.
  • default: exclude all tests that need additional server running.

To clean, build, and run the default maven profile:

    mvn clean install

To clean, build, and run allTests maven profile:

    [in a Mongo terminal]
    $MONGO_HOME/bin/mongod   

    [in a DynamoDB terminal]
    export AWS_ACCESS_KEY_ID="JBeret"
    export AWS_SECRET_ACCESS_KEY="JBeret"
    export AWS_REGION="eu-west-1"   
    java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
    
    mvn clean install -PallTests -Djberet.tmp.dir=/tmp

Or with Docker compose

    docker-compose up -d    
    mvn clean install -PallTests -Djberet.tmp.dir=/tmp

Other Examples

About

Reusable Components for Common Batch Processing Tasks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages