Questions tagged [jsr352]

JSR 352: Batch Applications for the Java Platform

JSR 352 specifies a programming model for batch applications and a runtime for scheduling and executing jobs.

https://jcp.org/en/jsr/detail?id=352

151 questions
0
votes
1 answer

Schedule java batch job with interval from last end date

I wrote my job using jsr-352 and deployed it on wildfly. How can I schedule one job with some delay after last end time like below time line where = is execution time and - is delay time: ===============--=====--========-- Note: maximum number of…
mohammad_1m2
  • 1,571
  • 5
  • 19
  • 38
0
votes
1 answer

JSR352 -Wildfly / jberet How to pause the thread and resume

I am trying to collect huge data which may takes to complete around 5 days using JBeret implementation.We are running the extraction using Wildfly 10.1.0 Application Server with subsystem(jberet) as in-memory job-repository. I took the chunk process…
zen
  • 5
  • 5
0
votes
1 answer

Authorization issues with batch OSGi app in Glassfish - "The current user is not authorized to perform this operation"

I've already deployed an OSGi maven application with many OSGi bundles under Glassfish 4.1.2. This bundles are activated with a webapp that makes some calls with Jobs defined on it. All this is actually working in the expected way. The web app…
ChoCho
  • 439
  • 5
  • 13
0
votes
1 answer

How can I define a JSR 352 chunk step to checkpoint every 10 seconds (and use built-in checkpointing in general)?

Is there a simple way using ? Can I combine a time-limit with my custom CheckpointAlgorithm?
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
0
votes
1 answer

Stopping JobInstance through JobOperator

I'm trying to stop one job execution from a managedbean. More concretely, I'm able to get the job instance and stop the job instance as follows: JobOperator operator = BatchRuntime.getJobOperator(); List re =…
Sergi Yagüe
  • 55
  • 1
  • 6
0
votes
1 answer

How should I do a DB update using SQLJ in a Liberty Batch (JSR 352) ItemWriter?

How should I obtain/cache/close my ConnectionContext (Connection)? Should I cache the context in ItemWriter.open() and cache across each chunk's ItemWriter.writeItems() What if I want to use DB2-specific APIs?
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
0
votes
1 answer

ZOS error in running JBERET java batch program

I am trying to run this jberet java batch program in z/OS but, getting the following exception. This seems to be something wrt permissions in z/OS because, the same executable (fat/uber) jar ran fine in the windows machines. Oct 05, 2017 9:07:41 AM…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

JSR352 JBeret - Error while running SleepyBatchlet using JBeret

I am trying to run a JSR352 compliant java batch program in Java SE mode using JBeret implementation. I took the SleepyBatchlet program, converted to a executable JAR (with all necessary dependencies packaged along with it) to use Jberet and tried…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

JSR352 - JBERET - How to check java batch program job log?

I am trying to run a JSR352 java batch program in Java SE mode using JBERET implementation. I can see my main() method getting executed. It is in this main() method i get handle of a job operator and starting the job. public static void…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
0 answers

Writer behavior when using Partitions in JSR352 Java Batch processing

I have implemented a Java batch program using the JSR352 framework implementation available in the Websphere Liberty server container. This Job is Chunk processing oriented Reader - Read a data Processor - Process it Writer Writer - Write data in…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

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…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

Is Java Batch (JSR 352) part of the SE JDK ? (BatchRuntime returns NULL for Joboperator)

I have written a Java batch application using the JSR352 implementation from JavaSE. I have a Reader, Processor and Writer. Since am running this java app from console in a JavaSE environment, I use the following code in my main(String[] args)…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
2 answers

How to implement File Update logic in Chunk Processing (Java Batch - JSR352)

I am trying to develop a Java batch program using the IBM's JSR352 Implementation. Since the batch job involves iteratively processing huge number of records, I chose to implement it as Chunk Processing job. This job involves of 3 steps which keeps…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

Can I run a Java Spring Batch program in JavaSE environment?

We are exploring deployment/execution modes for the Java batch programs being created for z/OS (mainframe) Option 1: Deploy it in Liberty profile Option 2: Can I run Spring Batch program in a JavaSE environment ?
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

Java EE JSR 352 - Jberet Dynamic Job Builder and Execution

Understood from Jberet userguide that a job can be build dynamically as alternative to static xml, but the guide doesn't have any input on how to execute the job build, So willing to know how to execute the job. Job job = new JobBuilder(jobName) …
Jeevanantham
  • 984
  • 3
  • 19
  • 48