Questions tagged [java-batch]
84 questions
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
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
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
1 answer
Java Batch Compiler - ignore all warnings through command line option
I see these runtime programming options:
https://help.eclipse.org/2018-12/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-using_batch_compiler.htm
but I am wondering if there is a command line flag I can use to ignore warnings outputted…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
1 answer
Xml Spring batch job to execute like if else
I made spring batch job but I stuck at somewhere. I'm trying to take argument from user in spring batch XML job, based on that argument I'll run different steps.
For eg. Argument= new or replace
Based on "Argument" , different steps will execute…

Inked
- 13
- 6
0
votes
1 answer
LazyInitializationException when entity pass to processor from reader
I use java batch (jsr-352) in wildfly 9.0.1. Processor of step(chunk-based) access to lazy field of entity. When processor want to fetch lazy field I give LazyInitializationException. When I run it on wildfly 11.0.0.Alpha1 everything works fine.
In…

mohammad_1m2
- 1,571
- 5
- 19
- 38
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
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
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
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
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