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
2
votes
1 answer

JSR 352: Is it possible to run different partitions of the same step in the same job in Multiple JVMs?

If so, How? I am using IBM's implementation of JSR 352 on WebSphere Liberty.
Fazil Hussain
  • 425
  • 3
  • 16
2
votes
1 answer

JSR 352 : How do you write to a MVS Dataset from a Java Batch program?

I need to write to a non-VSAM dataset in the mainframe. I know that we need to use the ZFile library to do it and I found how to do it here I am running my Java batch job in the WebSphere Liberty on zOS. How do I specify the dataset? Can I directly…
Fazil Hussain
  • 425
  • 3
  • 16
2
votes
2 answers

JSR352: Annotation @Named doesn't work in Java SE

I'm building a demo of JSR352 (Batch Applications for the Java Platform) under Java SE, using the JBoss implementation JBeret. And I want to run the integration test for this job. In this batch job, there're 3…
Mincong Huang
  • 5,284
  • 8
  • 39
  • 62
2
votes
1 answer

adding partitions dynamically in WebSphere JSR 352

MY source table is having 10 records and I need to read 10 records and needs to process those and needs to write that processed records to the target table. For this 10 records I have created 2 partitions. But in my real project we don't know how…
Srinivas K
  • 112
  • 7
2
votes
1 answer

JSR352: Monitoring Status of Job, Step and Partitions?

IBM's version of JSR352 provides a Rest API which can be used to trigger jobs, restart them, get the job logs. Can it also be used to get the status of each step and each partition of the step? I want to build a job monitoring console from where i…
Fazil Hussain
  • 425
  • 3
  • 16
2
votes
2 answers

JSR 352: Wildfly9 / JBeret - How to call a batch job that it is not contained at the same deployment file level

I have a WAR application that includes a JAR library. The JAR library contains the Batch Job and the Batch Artifacts (META-INF/batch-jobs/...). The WAR app includes this jar as a library and defines a JAX-RS Service that allows to clients to invoke…
Carlitos Way
  • 3,279
  • 20
  • 30
2
votes
1 answer

Batch job initialization fails on error while creating bean with name 'batchPropertyPostProcessor'

I'm trying to implement sample batch application using JSR-352 API and Spring Batch 3.0.4 as implementation. Batch job execution fails during initialization phase on error while creating bean with name 'batchPropertyPostProcessor': Exception in…
peter
  • 43
  • 1
  • 6
1
vote
0 answers

JSR-352: Save chunk checkpoint after ItemReader reads items

Using JSR-352 batch job along with Java EE, I'm trying to process items on chunk from a source in partitions. On retriable exception I want to be able to return to a past checkpoint, so I could get items already read from the source. The nature of…
1
vote
1 answer

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 StepB to be executed in prallel. Meaning Job1…
Thomas
  • 620
  • 7
  • 19
1
vote
1 answer

JSR 352 - Java batch - Cannot inject service bean or DAO in listener artifacts

In a batch project, I need to load some reference data from the database before processing. I am trying to do so by injecting a service bean in the JobListener and loading the data in the "beforeJob" method but the serviceBean is always null. public…
Sandy
  • 547
  • 3
  • 9
  • 20
1
vote
1 answer

JSR batch - constructor injection using @BatchProperty

I am currently working on a JSR batch job. I tried injecting incoming parameters in my batchlet constructor. @Inject public MyBatchLet(@BatchProperty(name="prop1") String prop1){ this.myProperty = prop1; } This throws a dependency…
ringadingding
  • 475
  • 5
  • 14
1
vote
1 answer

Spring batch CompositeWriter Equivalent in Java EE jsr352

I would like to get some insight on the possibility of implementing a spring batch CompositeWriter equivalent in Java EE 7 jsr 352 batch. The JSL won't allow me to include multiple ItemWriters in a step. My approach is to introduce a delegate…
gkc123
  • 512
  • 1
  • 7
  • 24
1
vote
1 answer

Jsr 352 - forcing to step regardless the status

I'm using jberet implementation of jsr 352. My purpose is to provide a final step in which I send an email with batch information status. Therefore, even if the previous step (can be either batchlet or a chunk) terminate with unexpected error, I…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
1
vote
2 answers

How to access partition properties in java ee batch / jberet

I have a job defined as below:
cghislai
  • 1,751
  • 15
  • 29
1
vote
1 answer

Java batch: jobContext transientUserData not passed through steps

I'm using JBeret implementation of jsr-352 specs. This is my job configuration, in short:
Fabrizio Stellato
  • 1,727
  • 21
  • 52
1 2
3
10 11