Questions tagged [jbatch]

JBatch is an IBM led JSR that's slated to be included into the Java EE 7 platform,

21 questions
5
votes
1 answer

jsr 352 batch with retryable and skippable exception may processes items many times

I have a batch implemented with JSR-352 (using jberet on wildfly). I have a chunk with item-count 15 and java.lang.Exception is configured as retryable and skippable exception. When there are many exceptions, most of the items will be processed…
cornz
  • 641
  • 4
  • 18
3
votes
1 answer

Java batch: How to programmatically determine which partition you are running?

In a JSR-352 batch I want to use partitioning. I can define the number of partitions via configuration or implement a PartitionMapper to do that. Then, there are the JobContext and StepContext injectables to provide context information to my…
JimmyB
  • 12,101
  • 2
  • 28
  • 44
3
votes
1 answer

NullPointerException running Batch job in WebLogic with managedScheduledExecutorService

I use batch job in my project and i deployed it on weblogic. I set datasource and schema name in weblogic console. When I want to start job by running BatchRuntime.getJobOperator().start("test-job", new Properties())i got below…
moh m
  • 51
  • 6
3
votes
1 answer

HSQLDB prepareStatement("SET SCHEMA ?") error

I'm writing a Jbatch service that requires a connection with a HSQLDB but at a certain point it throws me a NullPointerException (and some SQLExceptions/ PersistenceExceptions) . Debugging I discovered that in the class…
2
votes
3 answers

How can I synchronize a jBatch execution?

I'm writing a jBatch program with jBeret. I am currently doing like this. final JobOperator operator = BatchRuntime.getJobOperator(); logger.debug("operator: {}", operator); final long id = operator.start("some", null); logger.debug("id: {}",…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
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

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

How to get configured retryable/skippable exceptions in jsr352

I'd like to write some generic batch listeners to log out some useful information of all batches configured in my application. To do so I'd like to get the configured skippable/retryable exceptions from batch configuration. However I did not find…
cornz
  • 641
  • 4
  • 18
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

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

JBatch: Disable Job logging to JobRepository in Glassfish / Payara

We are working with JBatch to execute a huge amount of jobs. We would like to disable the logging of the job execution to the JobRepository database in some circumstances, in best case on job level. I haven't find any possibility to disable this…
Martin J.
  • 11
  • 2
1
vote
1 answer

JBatch: BatchProperty injection on Wildfly 9

I just started learning JSR-352 and made it through a view tutorials. But i have a problem with the injection of batch-properties: The important part of my "myJob.xml" is this
Veilchen4ever
  • 357
  • 7
  • 16
0
votes
1 answer

Custom JobRepository in JBeret for Quarkus

As described in Quarkus JBeret documentation, it is possible to use in-memoryor jdbc as values forquarkus.jberet.repository. I can see corresponding io.quarkiverse.jberet.runtime.JBeretInMemoryJobRepositoryProducerand…
G Quintana
  • 4,556
  • 1
  • 22
  • 23
1
2