Questions tagged [java-batch]

84 questions
1
vote
1 answer

JSR352 decide next step based on return parameter from Decider

I would like to implement a Decider that returns the ID of the next step that needs to be executed. (This question is related to my other question here if you would like to know why I'm trying to do this: JEE Batch Job Specification with many…
taranaki
  • 778
  • 3
  • 9
  • 28
1
vote
4 answers

JEE Batch Job Specification with many optional Steps

Is there a way to achieve the following logic with JSR 352 Batch API? I have a series of Steps that each need to be executed based on a different condition known when starting the job. ConditionsEntity is provided by an external system. public…
taranaki
  • 778
  • 3
  • 9
  • 28
1
vote
2 answers

Get Properties from reader in Java Batch

I have a Java Batch (JSR-352) application running on WildFly. The application is exposing a rest-api to trigger the job execution. I want to supply some values coming from the HTTP REST request to the Reader Class. What is the best way to implement…
adesai
  • 370
  • 3
  • 22
1
vote
1 answer

How to authorize a Java Batch job so it can run from a startup bean in WebSphere Liberty?

I am trying to submit a basic batch job from within my startup bean, which is giving me an error message of "User UNAUTHENTICATED is not authorized to start batch jobs." This is my startup bean: @Singleton @Startup public class ControllerBean { …
1
vote
1 answer

Design of JSR352 batch job: Is several steps a better design than one large batchlet?

My JSR352 batch job needs to read from a database, and then depending on the result flows to one of two pathways, each of which involves some more if/else scenarios. I wonder what the pros and cons between writing a single step with a large…
Treefish Zhang
  • 1,131
  • 1
  • 15
  • 27
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

When creating a java batch job, is it possible to reuse a step element within several flow elements?

I'm creating the XML that will define a relatively simple Java Batch Job (see JSR 352). I have three steps in my job, and I'd like to provide the ability to dynamically let the user decide if they want to execute all three steps, or just Step One,…
twindham
  • 930
  • 9
  • 31
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
1 answer

Disable batch security in WebSphere Liberty

We use a WebSphere Liberty server behind a reverse proxy. We enabled the appSecurity-2.0 feature to add a custom TAI which validates HTTP request between the proxy and Liberty. To use the batch framework that comes with WebSphere Liberty, we enabled…
Patrick
  • 447
  • 8
  • 17
1
vote
1 answer

find number of running execution of job on wildfly

I use jdbc job repository on wildfly. when I kill wildfly process some job execution remain in started state. When I restated wildfly i get running executions by BatchRuntime.getJobOperator().getRunningExecutions and give mentioned job executions.…
mohammad_1m2
  • 1,571
  • 5
  • 19
  • 38
1
vote
1 answer

Java batch - inject ejb to batchlet

I have a startup bean. I want to start some batchlet job in this. I annotated the batchlet class by use @Nemed and @Dependent . I want to use some ejb like ReportService in batchlet but Injection not work. How can I inject EJB to my batchlet? I…
mohammad_1m2
  • 1,571
  • 5
  • 19
  • 38
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
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
2 answers

Batchlet vs EJB Timer

I did an application to do some testing on network nodes like ping test, retrieve disk space ans so on. I use a scheduled batchlet to run the actions but I wonder if it is the rigth use of batchlet? Does an EJB timer should be more relevant? Also,…
Ersch
  • 173
  • 2
  • 15