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
:
-
REST resources:
-
Fixed-width files and other formats supported by BeanIO:
-
CSV with supercsv or Jackson CSV
-
Excel
-
JDBC
-
MongoDB NoSQL
-
Messaging
-
JSON
-
XML
-
Jasper Reports
-
JNDI ObjectFactory classes for custom JNDI resources in Java EE
JBeret Docs contains JBeret User Guide and
jberet-support
Java Docs, which describes how to use and configure
jberet-support
batch components.
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 needMongoDB
server running, and so users will need to start MongoDB server before running these tests;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 separate terminal]
$MONGO_HOME/bin/mongod
mvn clean install -PallTests -Djberet.tmp.dir=/tmp
-
wildfly-jberet-samples module contains sample web applications that use
jberet-support
components in Java EE, WildFly and JBoss EAP environment. -
tests directory contains tests for every
jberet-support
component running in Java SE environment. -
Search in JBeret JIRA Issue Track