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
1
vote
1 answer

JSR352 - Single item read, multiple item write

In a project I'm working on we are reading a file in which every item (a record) read represents a variable number of items to be written in a destination database. This apparently seems to break the pattern of JSR352 by inflating a single chunk…
1
vote
0 answers

How to retrieve decision id of IBM JSR 352 JSL

I run IBM JSR 352 batch job under Liberty Profile server. My JSL contains decision, e.g.
Java guy
  • 33
  • 1
  • 4
1
vote
0 answers

IBM JSR 352 joblogs empty

I run IBM JSR 352 java batch application on Websphere Liberty Profile server. The application used to write job logs, e.g. C:\web…
Java guy
  • 33
  • 1
  • 4
1
vote
0 answers

Java Batch tasks fail to complete due to failure to obtain/create connection from connection pool [ __TimerPool ]

I have a configured simple chunk-based XML jbatch job that has always run well even under heavy loads in Glassfish 4.1(Build 13) on CentOS 6. But I have recently created another installation with same Glassfish version on CentOS 7; virtually using…
kosgeinsky
  • 508
  • 3
  • 21
1
vote
1 answer

How to put the variables values in step context of a partitioned environment and acessing those in the next step .I am using JSR352 for this

I have 10 segments in the folder. Each segment has 2 files in it. I have implemented Partition mapper to read, process and write one segment at a time. I want to get the value of no.of records read from the files of each segment and no.of records…
1
vote
0 answers

weblogic Lookup failed for JNDI name: jdbc/batch

I have a batch job in my project. In startup bean it was schedule and run by BatchRuntime.getJobOperator().start("myJob") when I deploy it on weblogic give below error:
moh m
  • 51
  • 6
1
vote
1 answer

Content based routing and java batch JSR 352 (jBeret, Spring Batch)?

Content based routing and java batch JSR 352 (jBeret, Spring Batch)? Have tried to implement some simple "real world" batch jobs because the "hello world" was looking promising. Seems that I haven't got the concept right - but the actual release…
unclescrouge
  • 403
  • 5
  • 10
1
vote
2 answers

How to send emails from a Java EE Batch Job

I have a requirement to process a list of large number of users daily to send them email and SMS notifications based on some scenario. I am using Java EE batch processing model for this. My Job xml is as follows:
Faiza Aslam
  • 57
  • 12
1
vote
1 answer

Getting jobId from inside of Batchlet

I need get the jobId from inside of executing batchlet. Already, I'm able to get the jobId from the class that I am lanching the Batchlet, but not from inside of Batchlet. long jobId = job.start("BatchletName", parm); This sentence launch the…
Sergi Yagüe
  • 55
  • 1
  • 6
1
vote
2 answers

WELD-001409: Ambiguous dependencies for type StepContext with qualifiers @Default

I am trying to run this example in java SE mode from my windows command prompt. I have built a jar with all dependencies included in it and running it from my command prompt. but, keep getting this error. From this answer, i understand that there…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
1
vote
1 answer

JSR352 / JBERET - incompatible InnerClasses attribute between "javax.el.BeanELResolver$1" and "java x.el.BeanELResolver"

I have a JSR325 (Chunk processing) based java batch program and trying to run in Java SE mode using JBERET implementation. I am following the approach mentioned in this this…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
1
vote
0 answers

JSR352 - Error while updating VSAM file using ZFile.update()

The writer class opens a file (myfile) in mode and looks-up for a record using a key. Once the record is found, an update() is invoked. I get the following exception when the update() call is getting executed fupdate() failed; EDC5065I A write…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
1
vote
1 answer

Why does jobOperator.startNextInstance does not accept parameters?

I have a job which accepts parameters x=y and I have scheduled to run every 10 seconds. Here's how I start it: final JobExecution previousExecution = jobRepository.getLastJobExecution(jobId, jobParameters); if (previousExecution != null &&…
Petar Tahchiev
  • 4,336
  • 4
  • 35
  • 48
1
vote
0 answers

Get all chunk items before processing?

I use Spring Batch in a project and I'm looking for a way to pre-process all items of a Chunk before the ItemProcessor starts processing. I need to process the items of the chunk together. There is a ChunkListener, which is called only before the…
sschmeck
  • 7,233
  • 4
  • 40
  • 67
1
vote
1 answer

How to identify the batch application name in Liberty on the batchManager submit command invocation

I'm new to Liberty and am trying out the Batch (352) functionality. I can't find this as having been asked, either through search engines or stackoverflow, so I'm apparently missing something blatantly obvious... I've created a simple test…
Mike
  • 159
  • 10