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
2 answers

JSR 352: Pass Multiple variables using Step Context/Job Context?

I need to pass more that one variable between a Step Listener and a Writer. using StepCtx.setTransientUserData() i can only pass 1 variable. So to pass multiple variables should i create a map/class and pass it or is there a better way?
Fazil Hussain
  • 425
  • 3
  • 16
1
vote
1 answer

JSR 352. Restarting partitions : How to checkpoint the commits?

I have a partitioned job that reads from and writes to a DB. I have a chunking size of 100. If a partition fails and i want the restart to happen from the last commit, do i have to explicitly specify the checkpoint? (in Serializable…
Fazil Hussain
  • 425
  • 3
  • 16
1
vote
2 answers

Including both adminCenter-1.0 and batchManagement-1.0 features in server.xml giving feature conflict error in Liberty 8.5.5.8

I am using WebSphere Application Server 8.5.5.8/wlp-1.0.11.cl50820151201-1942 and I am using batchManagement-1.0 and adminCenter-1.0 in my featureManager list like below servlet-3.1
1
vote
2 answers

Partitioned Chunk Step, only first partition runs successfully, the others show ResultSet is closed Error

I am reading a data from a DB2 table and dumping it into a file. I am partitioning the step based on the values in a column. That is if column1 value is "XYZ" it will go in one partition and if column1 value is "ABC" it will go in the other. The…
Fazil Hussain
  • 425
  • 3
  • 16
1
vote
1 answer

Not able to call Maven Java batch using rest service deployed in liberty

https://github.com/WASdev/sample.batch.sleepybatchlet I am trying to run the above git sample. I was able to configure and run a ant build java batch project in liberty. but when it comes to maven project, i was not able to use the rest service to…
1
vote
0 answers

Spring Batch - Chunk Processing

Im my chunk processing ,I have read one value from file and in my processor im passing this value to the DB , that will return 4 records for that single value. And im returning 4 records to the writer which is going to write in the DB . I'm failing…
TELMILA
  • 83
  • 9
1
vote
1 answer

In a (Liberty) Batch chunk step, getting "ResultSet is closed" when scrolling through ResultSet from database query issued earlier in the step

I am reading data from DB2 table and dumping it into a file. I execute my simple select query in the chunk listener's beforeChunk() and use the step context to get it in itemreader. In the chunk i set the checkpoint policy as item and itemcount as…
Fazil Hussain
  • 425
  • 3
  • 16
1
vote
1 answer

JSR 352 Multiple Threads in a single partition?

Is it possible to have multiple threads in a single partition? if so, How?
Fazil Hussain
  • 425
  • 3
  • 16
1
vote
1 answer

JSR 352 Restarting a job?

When a job is restarted, only the failed partitions are run again. How do i run a successfully completed job again? Is there a difference between submitting a job again and restarting the job? i am using IBM's implementation of JSR 352 on Websphere…
Fazil Hussain
  • 425
  • 3
  • 16
1
vote
1 answer

JSR 352 Step Partitioning - Partition Restart Manually

Is it possible to Monitor the thread/threads of each partition Restart them manually/programatically when they fail. From what I have read, I understand that the batch framework handles it for us. However in case I want to do it on my own. How…
Fazil Hussain
  • 425
  • 3
  • 16
1
vote
2 answers

wildfly 10 batch jobs fail to find job.xml file

I've been running wildfly 8.1 and did a batchjob which executed fine and without any errors. This week wildfly 10 was released so i wanted to try it out but after startup and starting the job theres an error in the wildfly log : 2016-02-05…
jka_dk
  • 421
  • 1
  • 4
  • 17
1
vote
0 answers

Is there any queue like mechanism in Java Batch?

I'm looking into Java Batch, and found a couple of good examples. But, I'm not sure whether the independent jobs will run concurrently/in-parallel or sequentially. If they will run in-parallel, or concurrently, then how to set the limit on…
Adeel Ansari
  • 39,541
  • 12
  • 93
  • 133
1
vote
1 answer

Java EE 7 Batch (JSR-352) syntax for java.util.list?

I'm working with Jberet an implementation of Java EE 7 Batch Processing (JSR-352). I wanted to know if there was a nicer syntax for making a list in the JSL (Job Specification Language) for an object that's used for injection instead of giving a…
joshuar
  • 187
  • 2
  • 10
1
vote
1 answer

Java Batch(JSR-352) and Session Context CDI

I am using the java Batch (JSR-352), it is possible to work with a session bean inside it? I needed to have a Bean with @SessionScope annotation, to catch some information in it, that to differentiate the type of User that is running the batch…
Estevão Jordão
  • 189
  • 1
  • 5
  • 20
1
vote
1 answer

JSR 352 Partitioned Chunk Processing

I am trying to run a chunk step (Reader - Processor - Writer) in Spring Batch in JSR 352 Mode. I wanted to know if partitioning creates a new instance of the batch Artifacts (MyItemReader) for every partition or are the artifacts stateful (i.e…
javauser1
  • 15
  • 4