spring-batch
Spring, spring batch, hibernate, and JUnit and initialization for multiple integration tests
I have some test classes that are making use of spring-batch, and hibernate. My test contexts establish an h2 in memory database, initialized the hibernate session factory, which creates most of the d[详细]
2023-03-22 22:16 分类:问答Spring Batch Transaction commit outside commit interval
I implemented a spring batch framework with reader, processor, writer. the batch framework initiates a transaction and commit interval is for every 50 records say.[详细]
2023-03-22 20:00 分类:问答Spring batch 2.1 and JmsReader
I have one spring batch application which can be run from command line. The flow of the batch job is when it starts , it reads the message from queue and transform then and write to db. Now for this i[详细]
2023-03-22 19:07 分类:问答way to pin point failed item in a chunk during write in spring batch
What are the ways to log exact item which failed during writing a chunk of say 10 items size ? Is there a way to catch it in onWriteError method of ItemWriteListener ?[详细]
2023-03-21 17:37 分类:问答Unexpected rollbackCount and calls of shouldSkip() during item write
Spring documentation (Pg. 46, Section: 5.1.7) says: By default, regardless of retry or skip, any exceptions thrown from the ItemWriter will cause the transaction controlled by the Step to rollback.[详细]
2023-03-20 19:36 分类:问答Gracefully shutdown the spring batch process and recover batch process incase failed
We are using Spring Batch for some back-end operations. We need to know authentic way of 1) How to gracefully shutdown a running spring batch process?[详细]
2023-03-19 17:02 分类:问答how can I batchUpdate with a query that requires 2 parameters and only one of them is stored in a list
I use Spring-JDBC to insert the list of facebook friends for a user in my MySQL database. I have a final Long that contains the user uid and a List that contains the list of his friends.[详细]
2023-03-14 03:25 分类:问答Wrong EOL characters when after writing .txt
I use spring-batch 2.1.8 release. Depending if the batch is executed under windows or unix, there\'s a different EOL character. On unix, the file generated only has CR - on winsows, there are both CRL[详细]
2023-03-13 16:18 分类:问答PropertyPlaceholderConfigurer and depends-on
In the below code snippet <bean id=\"placeholderProperties\" class=\"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer\"[详细]
2023-03-08 04:34 分类:问答What is the right logging approach when using Spring Batch?
What is the right logging approach when using Spring Batch? Should I use log4j (or some开发者_运维技巧thing similar) or Spring Batch provides some instruments that help me to instantiate a logger and[详细]
2023-03-07 06:41 分类:问答