Giter Site home page Giter Site logo

moulalis / jberet-wildfly-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jberet/jberet-wildfly-samples

0.0 1.0 0.0 349 KB

JBeret Sample Web Applications for WildFly Application Server

License: Eclipse Public License 2.0

Java 99.53% HTML 0.47%

jberet-wildfly-samples's Introduction

Overview

This module contains sample web applications to demonstrate the use of JBeret and JSR 352 (Batch for Java Application) in WildFly and JBoss EAP. These sample apps use batch components in jberet-support to simplify accessing common data sources and formats.

In all sample applications, the test client performs batch job tasks via REST API defined and implemented in jberet-rest-api module.

Test --> JAX-RS Client API = = = > WildFly/EAP --> jberet-rest-api --> Batch API & JBeret

Sample Applications

  • restAPI
    • tests and shows how to use JBeret REST API to access and manage batch job data.
  • restWriter
    • uses restItemWriter to write batch data to destination resource via REST API.
    • uses csvItemReader to read data from online resource (movies-2012).
    • restWriter job inherits from reusable segments in parent JSL.
    • optionally include jberet-ui in application package to provide a web front end for accessing batch job data.
  • restReader
    • uses restItemReader to read data from online resource (movies-2012).
    • uses csvItemWriter to write data to CSV format.
  • scheduleExecutor
    • schedules single-action or recurring job executions using Java EE Concurrency Utils.
  • scheduleTimer
    • schedules single-action, recurring, or calendar-based job executions using Java EE Timer Service.
    • persistent or non-persistent job schedules.
  • batchProperty
    • demonstrates the injection of batch properties of common java types, such as int, long, List, Date, BigInteger, Map, Set, arrays, etc.
  • csv2json
    • csvItemReader for reading data.
    • jsonItemWriter for writing data.
    • job inherits from parent JSL.
  • xml2json
    • xmlItemReader for reading data.
    • jsonItemWriter for writing data.
    • job inherits from parent JSL.
  • xml2jsonLookup
    • same as xml2json, except that this sample looks up Jackson Json factory and XML factory in JNDI to improve resource efficiency.
  • csv2mongoLookup
    • mongoItemWriter for writing data.
    • csvItemReader for reading data.
    • looks up MongoDB client in JNDI to improve resource efficiency.
  • excelstream2csv
    • excelEventItemReader for reading data from Excel sheet.
    • csvItemWriter for writing data.
  • deserialization
    • uses one custom class for checkpoint info, and another custom class for step persistent data, to verify that they can be properly serialized and deserialized between job restart.
    • verifies the restartable job attribute.
    • verifies that a job whose job id differs from job xml file name can be started and restarted.
  • purgeJdbcRepository2
    • how to remove unwanted job data from a Jdbc job repository.
    • uses org.jberet.repository.PurgeBatchlet.

Build, Deploy and Run

A maven profile wildfly is defined to manage all WildFly-related tasks. In general, to clean and build the application, deploy it to WildFly or JBoss EAP, and run all tests:

mvn clean install -Pwildfly

To undeploy the application from WildFly or JBoss EAP:

mvn clean -Pwildfly

or

mvn wildfly:undeploy

jberet-wildfly-samples's People

Contributors

chengfang avatar jamezp avatar lozanro avatar paulkeogh avatar

Watchers

 avatar

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.