2

Is there anyway to use jberet as standalone module to execute Batch Jobs?

All the time getting samples on using along with WildFly.

Surprised to see it looks for container to load implementations while trying some samples.

Any insights on why/why not would be helpful

Nageswara Rao
  • 954
  • 1
  • 10
  • 32

3 Answers3

3

Here is a tutorial how to use jberet in a standalone application: http://www.mastertheboss.com/batch-api/running-batch-jobs-in-j2se-applications

You'll need to include various jboss dependencies for it to work. Furthermore you need to configure jberet with a separate jberet.properties.

I've build a (hopefully) minimal example application according to the tutorial. You can find it here: https://github.com/kaape/jberet-standalone-example

More information can be found in the jberet github repository: https://github.com/jberet

Community
  • 1
  • 1
kaape
  • 116
  • 1
  • 6
  • @NageswaraRao I've build an example application and put the github repository link in my answer. – kaape Sep 09 '14 at 20:21
  • Is there anyway to specify/replace custom extension of org.jberet.spi.BatchEnvironment at jberet-se? – Nageswara Rao Sep 10 '14 at 11:17
  • @kaape Is jberet implementation optimized for running production batch jobs ? I am looking for an alternative other than a JEE Container to run java batch jobs. Our target environment will be mainframes (z/OS). – yathirigan Sep 18 '17 at 04:51
0

I created a similar example but uses JDBC chunk oriented processing. https://github.com/lbtc-xxx/jberet-se-example

Kohei Nozaki
  • 1,154
  • 1
  • 13
  • 36
  • i am getting exceptions when trying to run jberet in standalone Java SE mode https://stackoverflow.com/questions/46520574/jsr352-jberet-error-while-running-sleepybatchlet-using-jberet could you please help – yathirigan Oct 03 '17 at 02:41
0

JBeret project test-apps sub-module (https://github.com/jberet/jsr352/tree/master/test-apps) contains various test apps that are structured as standalone Java SE applications (except restAPI where WildFly appserver is needed).

For JBeret + WildFly samples, please check out JBeret project wildfly-jberet-samples module:

https://github.com/jberet/jsr352/tree/master/wildfly-jberet-samples

cheng
  • 1,076
  • 6
  • 6
  • i am getting exceptions when trying to run jberet in standalone Java SE mode https://stackoverflow.com/questions/46520574/jsr352-jberet-error-while-running-sleepybatchlet-using-jberet could you please help – yathirigan Oct 03 '17 at 02:41