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

Java EE 7 batch API (JSR-352): it's possible to stop a single step and not all the job?

Note: JSR-352, Java EE, on wildfly 17.0.1, no spring I have defined the following job in xml:
Vokail
  • 630
  • 8
  • 27
0
votes
0 answers

Java ee batch: CWWKY0030I: An exception occurred while running the step

I have partitioned reader and writer. There are some queries getting transaction timedout while getting resultset back from cursor. But I couldn't able to get catch the exception. I need to catch the exception and update the status back to track…
user3540722
  • 175
  • 1
  • 2
  • 11
0
votes
1 answer

handle separate transaction in java batch (JSR-352)

I'm using jberet implementation of JSR 352 java batch specs. Actually I need a separate transaction for doing a singular update, something like this: class MyItemWriter implements ItemWriter @Inject UserTransaction transaction void…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
1 answer

Jberet, manually set writecount on batchlet

I wonder if is possible to manually set writecount property on a batchlet in order to log result on STEP_EXECUTION.WRITECOUNT field's table. This is my pseudo code @Inject EntityManager entityManager; @Inject private Logger…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
1 answer

JBeret and JSR352, some clarifications on restart and persistentdata

I'm currently using JBeret as the batch implementation of JSR 352 spec. FIRST ISSUE I'm tring to reproduct a chunk job where processor fails and store restart position so I can restart from last succesfull index. This is the Reader…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
2 answers

jBeret + Weld SE - Inject managed bean from Batchlet

I'm trying to make CDI work on JBeret SE. This is my code: SampleBatchlet class @Named public class SampleBatchlet extends AbstractBatchlet { @Inject @BatchProperty(name = "foo") String foo; @Inject StepContext stepContext; …
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
1 answer

Reloading partition step to create another set of threads

I have huge list of reports loaded into chunk partition step. Each reports will be further processed to generate individual report. But if I load 50k of reports in the partition step, which overloads the server and it gets much slow. Instead of that…
0
votes
2 answers

Run Spring Batch (JSR-352) application on Spring Boot

I have a simple Spring Batch application complying with JSR-352. I need to deploy this as a managed Task on Spring Cloud Data Flow server. As far as I know - to be able to deploy this as a Task I need to convert this application as a Spring Boot…
adesai
  • 370
  • 3
  • 22
0
votes
0 answers

Application example of a Spring batch (JSR-352) on Data Flow Server

I would like to have an example code of a Spring Batch application complying with JSR-352 (using batch.xml) running on Spring Cloud Data Flow Server as a Task.
adesai
  • 370
  • 3
  • 22
0
votes
1 answer

quarkus supports batch implementation (JSR352)

Is Quarkus supports batch implementation like (JSR352). I tried to search few examples and i couldnt find much. Thanks in advance.
0
votes
1 answer

Store batch data in NoSQL database rather than file system in Jberet on WildFly

I am developing a batch application on Java EE platform where Jberet (jsr-352 implementation) is used on WildFly application server. Jberet by default store all the batch data in local file system (under standalone/data) in XML format. And this is…
adesai
  • 370
  • 3
  • 22
0
votes
1 answer

Java Batch API: listener for handling exceptions thrown from ItemReader.open()

Is there any listener interface that one could implement to handle exceptions thrown from ItemReader.open() methods? There's plenty of listener interfaces but no one seems to be suitable for this. i.e. ItemReadListener catches only exceptions from…
bambula
  • 365
  • 1
  • 12
0
votes
0 answers

Batch Status stuck in STARTING state,

So im using JSR-352 specification for building batch jobs but something strange is hapenning, when i start my job, the batch status(on the control table) is persisted as STARTING and dont change from this. Even when it starts doing the first step on…
0
votes
1 answer

Java Batch restart does not process steps

When restarting the job, NO batchlet is executed, i.e. the process() method of the batchlets isn't called. Does someone have some hints why restart does not execute any of the batchlets. I've tried nearly every combination but no change to get the…
unclescrouge
  • 403
  • 5
  • 10
0
votes
1 answer

Are the open and close methods in itemreader and itemwriter the right places to open and close database connection in jsr-352 java batch job?

Are the open and close methods in itemreader and itemwriter the right places to open and close database connection in jsr-352 java batch job? I couldn’t find in spec that when those two methods will be invoked, especially in exceptional senario
Ming
  • 3
  • 2