How to run Java Batch (JSR352) in java SE environment?

1k views Asked by At

I have developed a java batch program using the JSR352 implementation (javax.batch.api.*)

What is the best way to run this java batch program in a Java SE environment ?

ps: We can deploy this program to a JEE server having JSR352 implementation but, we are looking for methods to run in a Java SE environment, where i can run the java program as a simple console application.

ps2: i have the javaee-api-7.0.jar in my project classpath.

1

There are 1 answers

0
yathirigan On BEST ANSWER

This approach worked. I was able to run a java batch in Java SE but, not sure how optimized this JSR352 implementation could be relied for Production grade jobs & data volume.

http://www.mastertheboss.com/javaee/batch-api/running-batch-jobs-in-j2se-applications

and

Standalone example on jberet (jsr352)