Commit Graph

56 Commits

Author SHA1 Message Date
Glenn Renfro
e4de63c2eb Update architecture adoc so that its batch-asciidoc variable is set
* Updated all docs that had `batch-asciidoc` declared to use attributes.adoc instead.
This way we can set the variable in one location and all adocs can take advantage of it.
* Also made sure that `batch-asciidoc` was set to use a relative path vs. the link in the UI.
This is because the PDF can't use a URL that contains the `-` character.

Resolves #4268
2023-02-08 15:12:50 +01:00
soohunee
562bb0742c Fix typo tnew to new in adoc files 2023-02-08 00:01:28 +01:00
Mahmoud Ben Hassine
de4508b4ff Add missing bullet point in whatsnew.adoc 2023-02-07 22:39:44 +01:00
Mahmoud Ben Hassine
97b55e229a Remove unused distribution resources 2022-12-09 10:35:20 +01:00
Mahmoud Ben Hassine
d54fa25d00 Update documentation 2022-11-23 17:01:32 +01:00
Danilo Piazzalunga
fc0ec01ff8 Throw IllegalStateException from afterPropertiesSet
Consistently use Assert.state in the afterPropertiesSet()
methods to throw IllegalStateException instead of
IllegalArgumentException when some properties are missing
and/or invalid.

Resolves #2244
2022-11-23 12:22:26 +01:00
Mahmoud Ben Hassine
8aa1becd41 Update "what's new" section for 5.0.0-RC2 release 2022-11-09 14:44:23 +01:00
Mahmoud Ben Hassine
35c7eabc5c Update documentation for 5.0.0-RC1 release 2022-10-19 22:02:32 +02:00
Mahmoud Ben Hassine
d55a091654 Remove Gemfire support in Spring Batch
Based on the decision to discontinue the support
of Spring Data for Apache Geode [1], this commit
removes the support for Geode in Spring Batch.

The code will be moved to the spring-batch-extensions
repository as a community-driven effort.

[1]: https://github.com/spring-projects/spring-data-geode#notice

Resolves #4214
2022-10-18 12:31:09 +02:00
Mahmoud Ben Hassine
dd823fa474 Update documentation for 5.0.0-M8 release 2022-10-13 11:50:41 +02:00
Mahmoud Ben Hassine
1b722f6595 Update documentation for release 5.0.0-M7 2022-10-05 05:39:45 +02:00
Ivan Agafonov
c2e8ef0845 Fix minor example in job.adoc 2022-10-04 23:05:55 +02:00
Mahmoud Ben Hassine
fd9dca3504 Fix column names in BATCH_JOB_EXECUTION_PARAMS
For some DB providers, columns cannot be named "VALUE".
This commit adds a prefix where appropriate to the columns
of `BATCH_JOB_EXECUTION_PARAMS`.

Related to:

* https://github.com/spring-projects/spring-batch/issues/3960
2022-10-04 22:13:40 +02:00
Mahmoud Ben Hassine
2660f2bb27 Add support to use any type as a job parameter
This commit also changes the way job parameters
are parsed and persisted.

NB: This commit should ideally have been split
into two change sets. But the changes are tightly
related that is was not possible to separate them.

Related to:

* https://github.com/spring-projects/spring-batch/issues/3960
* https://github.com/spring-projects/spring-batch/issues/2122
* https://github.com/spring-projects/spring-batch/issues/1035
* https://github.com/spring-projects/spring-batch/issues/1983
2022-10-04 20:35:50 +02:00
Mahmoud Ben Hassine
39b8279831 Fix incorrect reference to SimpleJdbcTemplate in reference documentation
Resolves #4197
2022-09-22 07:11:33 +02:00
Mahmoud Ben Hassine
be231f7316 Improve the documentation of scoped beans definition
Resolves #1502
2022-09-22 06:50:52 +02:00
Mahmoud Ben Hassine
219fee3bad Update documentation 2022-09-21 19:51:08 +02:00
Mahmoud Ben Hassine
f7ca108cff Update "what's new section" for 5.0.0-M5 2022-08-24 18:28:09 +02:00
Jay Bryant
f89aa20861 Use spring-asciidoctor-backends for documentation generation
Resolves #3865
2022-08-21 09:44:12 +02:00
Mahmoud Ben Hassine
c506a49988 Remove job autowiring in JobLauncherTestUtils
Before this commit, registering the JobLauncherTestUtils
as a bean in the test context (either manually or via
`@SpringBatchTest`) was failing when multiple jobs are
defined in the test context.

This commit removes the autowiring of the job under test
in JobLauncherTestUtils.

Resolves #1237
2022-08-20 12:39:02 +02:00
Mahmoud Ben Hassine
e67c0069f1 Use the Chunk API consistently
This commit replaces the usage of List with Chunk
where appropriate. Summary of changes:

- The Chunk class was moved from the `org.springframework.batch.core.step.item` package to the `org.springframework.batch.item` package
- The signature of the method `ItemWriter#write(List)` was changed to `ItemWriter#write(Chunk)`
- All implementations of `ItemWriter` were updated to use the Chunk API instead of List
- All methods in the `ItemWriteListener` interface were updated to use the Chunk API instead of List
- All implementations of `ItemWriteListener` were updated to use the Chunk API instead of List
- The constructor of `ChunkRequest` was changed to accept a Chunk instead of a Collection of items
- The return type of `ChunkRequest#getItems()` was changed from List to Chunk

Resolves #3954
2022-08-19 13:40:09 +02:00
Fadhel Mahmoud Ben Hassine
9d322e9de2 Update whatsnew.adoc 2022-07-20 23:32:12 +02:00
Henning Poettker
a393dc533d Replace deprecated IntegrationFlows 2022-07-20 18:28:34 +02:00
Marvin Deng
c0791039dc Rename SimpleJobLauncher to TaskExecutorJobLauncher
Resolves #4123
2022-07-19 13:34:23 +02:00
Mahmoud Ben Hassine
53eabcdeee Update the "what's new" section for 5.0.0-M3 2022-05-18 20:29:44 +02:00
Mahmoud Ben Hassine
df8dac19df Change default encoding to UTF-8 in file-based readers and writers
This commit overrides the fix in #3910 by using UTF-8
as default encoding in file-based item readers and writers.

Issue #1154
2022-05-17 20:07:03 +02:00
Mahmoud Ben Hassine
9f4424f4fa Fix documentation WRT restarting an abruptly stopped job
Resolves #4037
2022-05-05 18:03:18 +02:00
Mahmoud Ben Hassine
30ad62f78a Refine contribution #4083
Add "Spring Batch Architecture" section to the index
2022-05-05 17:21:43 +02:00
Jay Bryant
9b8782490f Editing pass for reference docs
Issue #4083
2022-05-05 17:08:05 +02:00
Xavi Lee
f23ab15448 Update copyright date 2022-04-01 16:17:59 +02:00
Mahmoud Ben Hassine
ff9d069514 Update "what's new section" 2022-03-23 11:11:32 +01:00
Rod Lecocq
6b34563c6f Fix doc for schema BATCH_JOB_INSTANCE.JOB_KEY
Fixes #4071
2022-03-08 12:06:19 +01:00
Rohit Sanjay
875be704c2 Fix typos in documentation 2022-02-22 13:30:03 +01:00
Mahmoud Ben Hassine
0bd45e72b1 Update whatsnew.adoc 2022-01-19 05:48:44 +01:00
Mahmoud Ben Hassine
033d7e584b Update the what's new section for v5 2021-12-20 22:52:11 +01:00
Mahmoud Ben Hassine
e5c752b4b8 Remove JSR-352 implementation
Resolves #3894
2021-12-13 09:57:48 +01:00
Mahmoud Ben Hassine
5dc17b190e Upgrade dependencies to major versions for Spring Batch 5
* Upgrade to Jakarta EE 9
* Upgrade to Spring Framework 6
* Upgrade to Spring Integration 6
* Upgrade to Spring Data 3
* Upgrade to Spring AMQP 3
* Upgrade to Spring for Apache Kafka 3

LDIF support is still in progress waiting for the next
major version of Spring LDAP.

Closes #4027
Closes #3656
2021-11-22 12:16:49 +01:00
Mahmoud Ben Hassine
753a538a69 Remove reference to Spring Batch Admin in job.adoc 2021-10-01 19:22:02 +02:00
Jay Bryant
beaac5c62f Editing of the job edit changes
Editing new content
2021-10-01 19:14:50 +02:00
Sanghyuk Jung
4d67858c7c Fix typos in document for configuring steps 2021-08-18 21:29:20 +02:00
Mahmoud Ben Hassine
36b63ed283 Remove usage of master/slave terminology 2021-08-17 21:59:30 +02:00
Mahmoud Ben Hassine
24152e7a57 Fix references to the old master branch with the new branch name 2021-08-17 21:34:55 +02:00
Mahmoud Ben Hassine
f8bdf5521e Remove the Map based job repository/explorer and their DAOs
This commit removes the deprecated Map-based job repository
and job explorer implementations with their respective DAOs.
Using the `EnableBatchProcessing` annotation now requires a
datasource bean to be defined in the application context.
This will be reviewed as part of #3942.

This commit is a first pass that updates related tests to use
the JDBC-based job repository/explorer with an embedded database.
A second pass should be done to improve tests by caching/reusing
embedded databases if possible.

Issue #3836
2021-08-17 16:23:46 +02:00
Henning Poettker
0ad68037b6 Reduce naming collisions in consecutive tests 2021-08-09 13:36:31 +02:00
Mahmoud Ben Hassine
792278d073 Fix typo in documentation 2021-08-06 22:33:12 +02:00
Jay Bryant
92e6f32e52 Add EPUB output
Add EPUB output and make all four output formats have links to one another,
to enable discoverability and accessibility (for the folks who need a
particular format to help them read the document).
2021-05-21 23:00:49 +02:00
dkjeong
1beb07ec51 Fix typo in documentation
Issue #3907
2021-05-18 11:18:34 +02:00
Taeik Lim
63cfc07a5e Fix misused 'end()' in examples
`end()` should be used with `FlowJobBuilder`.

Issue #3902
2021-05-18 10:46:48 +02:00
ChangYong
b486e245d7 Fix code examples in documentation
The changed code examples in this commit used the
`.end()` method which does not exist in `SimpleStepBuilder`.

Issue #3889
2021-05-17 19:55:31 +02:00
Rajesh Chandavaram
8d181bc74d Improve code example in "Configuring and Running a Job" section
The sample that shows how to provide a custom transaction manager
via a BatchConfigurer has been updated to use the constructor
of `DefaultBatchConfigurer` that takes a DataSource.

Issue #3888
2021-05-17 19:31:01 +02:00