简体   繁体   中英

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

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.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM