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

Liberty Batch function not using database persistence for job repository

I'm trying to use database persistence with the Open Liberty batch features. However, I'm seeing nothing inserted into my DB tables and I see this message in messages.log: ... I CWWKY0005I: The batch In-Memory persistence service is…
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
0
votes
1 answer

Custom JobRepository in JBeret for Quarkus

As described in Quarkus JBeret documentation, it is possible to use in-memoryor jdbc as values forquarkus.jberet.repository. I can see corresponding io.quarkiverse.jberet.runtime.JBeretInMemoryJobRepositoryProducerand…
G Quintana
  • 4,556
  • 1
  • 22
  • 23
0
votes
1 answer

Error using Oracle DB as default job repository in Jakarta batch (JSR352 -Wildfly / jberet)

I'm running a Jakarta 10 application in Wildfly 27.0.1.Final server (thats implement Jakarta batch using Jberet) I want to use a JDBC Job Repository in JBeret. Everything runs okay when I use the default "in-memory" repository or when I use the…
0
votes
2 answers

Delete data in Java Batch Job (JSR352)

While I have Java Batch jobs that read data, process it and store it in other places in the database, now I need a step to actually remove data from the database. All I need to run is a delete query via JPA. The chunk based Reader/Processor/Writer…
Queeg
  • 7,748
  • 1
  • 16
  • 42
0
votes
2 answers

How to distribute work correctly in JSR-352?

So I have been using Java Batch Processing for some time now. My jobs were either import/export jobs which chunked from a reader to a writer, or I would write Batchlets that would do some more complex processing. Since I am beginning to hit memory…
Queeg
  • 7,748
  • 1
  • 16
  • 42
0
votes
1 answer

Wildfly 26.1.3 Domain Batch JBeret WFLYCTL0030: No resource definition is registered for address

I am trying to run JBeret Batch on a Wildfly Domain Cluster locally, but I keep getting the error "WFLYCTL0030: No resource definition is registered for address [ (\"deployment\" => \"ExampleJob.war\"), (\"subsystem\" => \"batch-jberet\") ]" To host…
jmatd
  • 1
  • 2
0
votes
1 answer

Java Batch Multithreading

I have some JSR-352 batch jobs that run quite well - despite their runtime. Now I am thinking of distributing the work across several threads. How is this pattern supported by JSR-352? Edit: Now that I know the keywords to search for I can make out…
Queeg
  • 7,748
  • 1
  • 16
  • 42
0
votes
0 answers

Revert Database changes on Jakarta EE Batch failure

I am developing a Jakarta EE Batch using EclipseLink and Wildfly. I am stuck at the ItemWriter level. The Writer basically creates a file and should write some records into it. Each file is associated with a Delivery which is my entity. So one file…
Manu
  • 284
  • 2
  • 20
0
votes
1 answer

How to run spring batch JSR 352

May I know how to solve the following error? I run the spring batch based on the example in https://docs.spring.io/spring-batch/docs/4.3.x/reference/html/jsr-352.html#jsr-352. package com.example.springjsrdemo; import…
Jack
  • 89
  • 6
0
votes
1 answer

Job-level callback when execution is stopped via JobOperator

I'm using a JobListener to write a batch execution log file. In my first attempt, my code relied on afterJob() being called in every case, but I discovered, that it is not called when the execution is stopped via JobOperator.stop(jobExecutionId). I…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
0
votes
1 answer

Spring boot - jsr352 batch implementation - Beans not getting reference in jobxml

I am implementing a batch application using springboot 2.4.3 + jsr352. There is a simple batchlet class(sleepybatchlet) defined. I am trying to reference it in the JSL. but It fails saying classnotfound exception when the job is started using…
user1570345
  • 193
  • 1
  • 1
  • 11
0
votes
1 answer

jdbcItemReader support for partitioning?

Using jdbcItemReader from https://github.com/jberet/jberet-support and wanting to use partitioning to speed up processing. The number of partition (here 16) has the side effect to duplicate data written. Each partition perform the same work on the…
cedric.walter
  • 731
  • 6
  • 7
0
votes
1 answer

Is remote partitioning available with JSR-352 under Spring Batch?

I would like to configure a JSR-352 batch job for remote partitioning, behind the scenes through configuration, without having to explicitly define the controller/worker in the job definition (which is not supported by the JSR-352 specification…
0
votes
1 answer

JSR352 How to prevent same job to run twice?

I am using JBeret on WildFly. Is there a way to prevent a Job from running twice at the same time? I.e. a Job is scheduled to run every hour. If the Job runs longer than an hour, I dont want it to run twice at the same time, meaning the second…
Thomas
  • 620
  • 7
  • 19
0
votes
2 answers

Java Batch job: how to wait for a user decision?

Within my Java batch job (JSR-352, JBeret) I have reached a point where I (optionally) would like to wait for a user decision. According to my research, the JSR-352 specification does not provide a "waiting" concept. So the question is, what other…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106