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

Java batch (JSR 352) with Weblogic 12.1.3

Can i use java batch with weblogic 12.1.3? This version of weblogic support java EE 7 but in the console I can not find a page with the Batch configuration
andrean
  • 107
  • 12
0
votes
1 answer

jberet, one wildfly instance, multiple datasources: can I use more than one job-repository?

We currently have a set of services each running in their respective wildfly 9.0 instance. Some of them have batch jobs implemented using jberet 1.2.0. Each wildfly instance has one datasource (jdbc, oracle) for the service and one job-repository…
Dominik
  • 141
  • 1
  • 3
  • 14
0
votes
0 answers

how to expose start/stop/status features for all java batchs running in a Web Server

My straight question is: let's say I have 10 wars deployed to my server. Inside of each one there is a simple job either coded with Spring Batch or JSR352 implementations. Then I want to start, check the status and stop them manually? What from an…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
0 answers

BatchEE getRunningExecutions method throws javax.batch.operations.NoSuchJobException after second execution

I try to get the running executions while performing Java-EE batch executions. While first execution via BatchRuntime.getJobOperator().start(JOBNAME,parameters) everything works fine: BatchRuntime.getJobOperator().getRunningExecutions(JOBNAME)…
Alex R.
  • 205
  • 1
  • 10
0
votes
1 answer

JSR 352: Connection is closed Error if connection is closed in the Readers close() in partitioned step

I create a Connection Connection con = ds.getConnection();(where ds is DataSource) in the open of the Reader and close it in the close() of the Reader. But when i run a job with multiple partitions, in the middle of the job , i get Connection is…
Fazil Hussain
  • 425
  • 3
  • 16
0
votes
1 answer

Intermediary result set in ItemReader

Fairly new to the Spring Batch mechanism–I managed to get it up and running but my business logic does not seem to fit as a Spring Batch job. Allow me to explain: The job is responsible of sending an email to the User as follows: Fetch the set of…
Matthew Cachia
  • 4,474
  • 1
  • 13
  • 17
0
votes
1 answer

Can I run JSR 352 batch jobs on WebSphere Application Server traditional Version 8.0?

I am having below doubts, In my project we are using WebSphere Application server 8.0.0.7, now we are planing to host JSR 352 application in my WebSphere Application server 8.0.0.7. Is it possible to host JSR 352 applications on WAS 8.0.0.7? If yes…
0
votes
0 answers

Insert Records into Database using JobListener of JSR-352

I am trying to insert some records in the afterJob() method of the JobListener implementation. My Listener looks as follows, public class SampleListener2 implements JobListener { @Autowired DataSource dataSource; @Override public…
Ravikiran butti
  • 1,668
  • 2
  • 11
  • 18
0
votes
1 answer

Spring batch jsr 352 how to prevent partitioned job from leaving thread alive which prevent process from ending

Let me explain how my app is set up. First I have a stand alone command line started app that runs a main which in turn calls start on a job operator passing the appropriate params. I understand the start is an async call and once I call start…
Mark Kouba
  • 236
  • 2
  • 12
0
votes
1 answer

spring batch check for job completion best approach

I am looking for a best approach in determining if a spring batch job has completed that does not involve using a job listener. I am using the jsr compliant components. The reason for no job listener is I do not want to be dependent on the end…
Mark Kouba
  • 236
  • 2
  • 12
0
votes
1 answer

Spring Batch Jsr 352, manage processor skip outside/before skip listener

I am trying to find a way to manage a skip scenario in the process listener (or could be read or write listener as well). What I have found is the skip listener seems to be executed after the process listener's on error method. This means that I…
Mark Kouba
  • 236
  • 2
  • 12
0
votes
0 answers

Spring batch, manage rollback for transactional items done in item processor

This involves using a JSR job, so I do not have access to use the tasklet definition in the job specification. The direction I've been given is to support only JSR 352 features as far as job specification goes. Here is an example of a job:
Mark Kouba
  • 236
  • 2
  • 12
0
votes
1 answer

Exclusive batch jobs with javax.batch/jsr352

We have an application which does a lot of imports and exports - basically between CSV files and database tables. Some of the imports and exports are conflicting (you can't execute them simultaneously) for various reasons (like "legacy code"). We…
lexicore
  • 42,748
  • 17
  • 132
  • 221
-1
votes
1 answer

JSR-352 : Stackoverflow error in DB2DataStoreHelper.findMappingClass

Caused by: java.lang.StackOverflowError at java.lang.Integer.valueOf(Integer.java:844) at com.ibm.websphere.rsadapter.DB2DataStoreHelper.findMappingClass(DB2DataStoreHelper.java:430) at…
Fazil Hussain
  • 425
  • 3
  • 16
-2
votes
1 answer

How do jsr 352 checkpoints work in a failure/rollback scenario?

It's possible to use "checkpoint" into "itemReader" and "itemWriter". If I define a commit each 10 items, the batch reads 10 items and calls the "itemWriter" code. Now, if the "itemWriter" fails (rollback on database), I have: checkinfo for…
mikael
  • 1
  • 1
1 2 3
10
11