84 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
3
answers
132
views
How to terminate partition yet succeed on the job?
I have a Jakarta Batch application that runs jobs with partitions. Under some conditions the processor signals there is nothing else to be done by throwing an exception. As this exception shall ...
1
vote
1
answer
87
views
Java Batch ItemProcessor lifecycle missing?
An ItemProcessor, as defined by Java Batch contains only one method: processItem(Object item)
What I am missing are lifecycle events like open() and close() - similar to the methods on ItemReader or ...
0
votes
1
answer
477
views
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 ...
0
votes
1
answer
298
views
Filtering after Read in Spring Batch
I currently have a Spring Batch in which FlatFileItemReader reads from a csv file and then based on the values read goes on executing the rest of tasklets and runs the job. I want to make a downstream ...
0
votes
1
answer
41
views
Returning previous business day instead of currentDate with fastDateFormat
I currently have the below code utilized for retrieving current date in spring batch. Is there a way to implement a similar solution, but instead, returning the previous business day instead of the ...
0
votes
0
answers
352
views
Spring Batch Stops exactly at 2 hours 10 minutes everytime
I have written a spring batch with Reader and Writer (No Processor). All it does is based upon the input records from the reader, loads the data from few source tables to archive tables. I am calling ...
3
votes
1
answer
174
views
WebSphere Liberty - Batch reader/writer/etc. not showing updated values when job is re-run with different job parameter values
When I ran a job multiple times on the liberty server it allways takes the parameter values of my first job ran although I changed the values. So I can't run the job multiple times with different ...
1
vote
1
answer
256
views
How to prevent the parallel execution of a Step used in two Jobs in JBeret?
I am using JBeret on Wildfly,
lets say I have Job1 that consists of StepA, StepB, StepC.
Lets say I have Job2 that consists of StepB.
Now, when both Jobs run at the same time, I would like to prevent ...
0
votes
1
answer
279
views
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 ...
2
votes
1
answer
358
views
How to use dynamic values in JSL in a JSR-352 Java Batch application
Is there a syntax to use dynamic values in the JSL (Job Specification Language) file of a JSR-352 Java Batch application?
My specific case is to be able to change the value of the item-count attribute ...
2
votes
0
answers
200
views
Spring Boot Batch Job is not called by Scheduler
This is Main Class.
now, my problem is :
The scheduler works and it repeats every one min,
but the job executes only on application startup(reader, processor and writer just execute once in a startup)...
0
votes
2
answers
302
views
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 "...
1
vote
1
answer
304
views
Stopping a JSR batch application during operation without throwing exception
We have a jsr 352 java batch application that we are wanting to stop the execution early if a condition is met but not throw an exception. The basic layout of our job is as follows:
<job id=XXX&...
1
vote
1
answer
313
views
JSR352 decide next step based on return parameter from Decider
I would like to implement a Decider that returns the ID of the next step that needs to be executed. (This question is related to my other question here if you would like to know why I'm trying to do ...
1
vote
4
answers
1k
views
JEE Batch Job Specification with many optional Steps
Is there a way to achieve the following logic with JSR 352 Batch API?
I have a series of Steps that each need to be executed based on a different condition known when starting the job.
...