Category "spring-batch"

Spring Batch ChunkRequest throws stackOverflow

I am struggling with Spring Batch RemoteChunking with newer versions of Spring boot. First i try to send ChunkRequest as event, it wasn't possible because it ha

Spring Batch FlatFileItemWriter - output customization

I would have the need to produce a CSV File with the following requirements: Every field is surrounded by double quotes Double quotes are escaped with backslash

Jpa reader Spring Batch

I would like to know, if this way is recommended to implement the reader spring batch with jpa or is it better to look for another solution and if this way is n

Spring Boot/Spring Batch: Using and configuring two DataSource via app properties

I'm working with Spring Boot/Spring Batch, and need to provide two jdbc Data Sources. I can't find a way to automatically load the config parameters from my app

Spring Batch cannot Load the JobBuilderFactory in my integration test

I have a configuration that successfully works and loads cell line data and publishes to various recipients in a cell line topic. It works fine, but when I try

Spring Batch JPA Bulk Insert eats performance when using GenerationType.IDENTITY

I am using Spring Boot and Spring Batch and JPA to load data from One database into another. In a single batch Job I've created 10 steps to run steps in sequenc

How to get the start_time of the last completed job in Spring Batch?

Suppose these are my job runs: job_id | job_status ------------------- 1 COMPLETED 2 COMPLETED 3 FAILED 4 COMPLETED 5 FAILED

How do I get a SpringBatch Integration test to load my application properties?

I have the following Spring Batch test in my src/test/java: @RunWith(SpringRunner.class) @SpringBatchTest @EnableAutoConfiguration @ContextConfiguration(classe

Spring batch - conditional step flow for Chunk model

I have two step where, step 2 should be skipped if the step 1 processor doesn't returned any item after filtration. I see ItemListenerSupport can be extended an

Why is setting TransactionManager as JPATransactionManager in a Step not correct?

I am working with Spring Batch and JPA and I experienced the TransactionManager bean conflict. I found a solution by setting the TransactionManager as JpaTransa

Encountered invalid @Scheduled method 'methodName': Only no-arg methods may be annotated with @Scheduled

plz I don't know wath is the exact problem in the code if I add Scheduled annotatiçon in my code suddenly this error appears if you have any soulustion p

Write the same data with different file names using single Item writer using Spring Batch

I have a Spring Batch FlatFileItemWriter which writes data to a specific location with a file name(let's say A.txt for example). Now I need the same file to be

No qualifying bean of type 'org.springframework.batch.core.Job' available: expected single matching bean but found 2:

I have 2 jobs running in single spring batch application based on input parameters and it is working successfully. But when i run my test case, i'm getting the

Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found

I am working on spring batch with spring boot 2.X application, actually its existing code i am checked out from git. While running the application it fails due

Job parameters change between JobLauncherCommandLineRunner and SimpleJobLauncher

Using spring batch, I am trying to start a job with some parameters but parameters from previous instance are used. Spring is started using ApplicationContext

Get JobParameters on RepositoryItemReader

I have a problem with the execution of the batch process that I am developing. It comprises several steps. The first one recovers data and inserts it into a ta

spring batch+spring boot+java config+test cases

spring batch+spring boot+java config+test cases I have followed the below example and my use case matches this, I have implemented the project with similar set

Spring Batch job with FlowBuilder fails even though steps complete

I've got a spring batch job that completes the steps successfully but marks the overall batch job status as Failed. The job has two steps. The first step vali

Failed to execute CommandLineRunner - Spring Batch

Hi I am very new to Spring batch and I am getting the following exception which I am not able to resolve: java.lang.IllegalStateException: Failed to execute Co

cannot handle exceptions in spring batch integration flow

I'm trying to set up a flow that handle exceptions thrown during batch execution (this job is executed through the flow startBatchFlow), but the program ends wi