Commit Graph

4989 Commits

Author SHA1 Message Date
Michael Minella
934fcad6c2 Updated StaxEventItemWriter to assert that it has been opened.
This commit adds a proper assertion that the writer has been properly
opened prior to executing a write.  This now returns a
WriterNotOpenException instead of the previous NullPointerException.

Resolves BATCH-2343
2017-01-26 12:08:22 -06:00
Michael Minella
4917ac3017 Jdbc writer fixed to allow Map, named params, and ItemSqlParameterSourceProvider
In merging BATCH-1955, we accidentally prevented the ability to use a
Map as an item, named parameters, and an ItemSqlParameterSourceProvider.
This commit re-enables that capability by checking if the
ItemSqlParameterSourceProvider is null.  If it's not, it's used.
2017-01-26 11:37:56 -06:00
Michael Minella
54a90beed7 Upgraded Mockito
This commit upgrades mockito to the latest currently available version
as well as does some additional cleanup.
2017-01-24 14:18:05 -06:00
Michael Minella
c824ccf7aa Updated Jackson dependency to require the latest for the JsonLineMapper 2017-01-16 13:56:30 -06:00
Michael Minella
e2a3fd9862 Fixed typos. 2017-01-09 16:16:20 -06:00
Michael Minella
48bffce6c0 Updated docs around 4.0.0.M1 and added a link to Gitter channel 2017-01-06 10:46:11 -06:00
Michael Minella
26b02fb836 Replaced snapshot versions and addressed deprications
This commit moves all SNAPSHOT dependencies to the latest available
released versions.  It also addresses a number of deprications in the
Spring Data realm.  Specifically around the deprication of the
Neo4JOperations and the package reorganization within Hibernate.
2016-12-30 14:04:58 -06:00
Michael Minella
e8a59846aa Added a builder for JdbcBatchItemWriter
This commit adds a builder for the JdbcBatchItemWriter that includes a
couple nicities to simplify configuration of basic use cases.

Resolves BATCH-2561
2016-12-29 10:34:25 -06:00
Michael Minella
9d9218b7a9 Upgraded minimum requirement for Neo4j
This commit upgrades the minimum requiremnt for Neo4J to be in alignment
with the rest of the Spring IO platform.  Because of this, the Neo4J4
module has been removed since the main line is now at the current level.
2016-12-22 10:42:13 -06:00
Michael Minella
eb509dd741 Updated Spring Data based dependencies
Spring Batch 4.0 will be part of the Spring Boot 2.0 release and so to
be compatible with Spring Data Kay, the dependencies have been upgraded
and tests fixed.

Resolves BATCH-2560
2016-12-14 10:56:28 -06:00
Michael Minella
ee8c28d787 Fix broken tests due to database initialization not occuring
This addes @DirtiesContext to some unit tests that were breaking because
database initialization was not occuring.
2016-12-08 13:19:17 -05:00
Michael Minella
8a2b23d669 Fixed unit tests due to changes in exception messages 2016-11-21 15:20:49 -06:00
Michael Minella
80a153527f Updated test based on new error message returned by Spring Framework 5 2016-11-18 10:33:41 -06:00
Michael Minella
a75b067ebc Added builder for JdbcCursorItemReader
This provides a builder for the JdbcCursorItemReader to simplify java
configuration.

Resolves BATCH-2555
2016-11-18 09:18:26 -06:00
Michael Minella
a6f7ad3373 Added builder for FlatFileItemWriter
This commit adds a builder for the `FlatFileItemWriter`.

Resolves BATCH-2553
2016-10-31 12:41:49 -05:00
Michael Minella
29161487a4 Added builder for the FlatFileItemReader
This commit adds a builder for the `FlatFileItemReader` and commonly
used releated components (`BeanWrapperFieldSetMapper`,
`DelimitedLineTokenizer`, and `FixedLengthTokenizer`).

Resolves BATCH-2549
2016-10-21 16:08:54 -05:00
Michael Minella
a50872904e Initial commit 2016-10-20 11:09:50 -05:00
Michael Minella
32f723ba34 Upgraded to Spring Integration 5 2016-10-18 12:56:46 -05:00
Michael Minella
eb2f752b16 Unwrap StepListenerFailedException when determining skip/rollback
When determining if an exception should be skipped or not, the business
exception should be used.  However, when an exception is thrown in the
listener, it's wrapped by a `StepListenerFailedException`.  This leads
to it hiding the underlying exception.  This commit will unwrap the
cause of a `StepListenerFailedException` and use that to determine if it
should be skipped or not.

Resolves BATCH-2322
2016-10-17 11:27:15 -05:00
Michael Minella
ca847e2760 Addressed stopped jobs from a job step
Prior to this commit, when using the `JobStep`, if the child job was
stopped (left in the `STOPPED` state), the step executing that job was
marked as `COMPLETE`, preventing it from being restarted.  This commit
now marks a step that was executing the stopped job also as stopped,
allowing for it to be restarted.

Resolves BATCH-2429
2016-10-14 12:07:48 -05:00
Michael Minella
cfad543a63 Unwrap ExecutionException in the AsyncItemWriter
When using the `AsyncItemProcessor` and `AsyncItemWriter`, business
exceptions that occur during the process phase are hidden by an
`ExecutionException` that is returned wrapping the originally thrown
exception in the `AsyncItemWriter`.  In this commit, we now unwrap any
`ExecutionException` that is returned and throw the cause.  Debug
logging is also added to allow the logging of the original exception as
well.

Resolves BATCH-2386
2016-10-13 14:23:58 -05:00
Michael Minella
ad5348f32d Updated reply channel in the MessageChannePartitionHandler
When using the `MessageChannelPartitionHandler`, the reply channel is an
instance variable.  However, when the handle method is called, if a
reply channel is not injected, it will create a new one.  If multiple
jobs recycle the same instance of the partition handler, you may end up
having messages crossed/lost.  This PR removes the creation of the reply
channel for each call to the handle method and documents that this
comonent should be step scoped.

Resolves BATCH-2288
2016-10-13 12:42:39 -05:00
Michael Minella
0c466339e5 Removed the incorrect setting of the shouldDeleteIfExists flag from the
setter (it's already handled in the afterPropertiesSet).

Resolves BATCH-2495
2016-10-04 11:44:14 -05:00
Michael Minella
2ee254fe01 Fixing integration tests for CI build 2016-10-03 17:44:50 -05:00
Michael Minella
d0b4d45b99 Upgraded sonar 2016-10-03 15:45:51 -05:00
Michael Minella
23f599f1f5 Updated test to dynamically obtain java executable location 2016-10-03 12:56:33 -05:00
Michael Minella
35fba25b9d Turned off standard stream logging in tests 2016-09-30 13:08:25 -05:00
Michael Minella
b2e6b431dc Updated for Spring 5 baseline
The new Spring 5 baseline consists of Spring 5, Hibernate 5, and Java 8.
This commit addresses any changes to create a successful build of Spring
Batch under those guidances.  Further commits will be coming to address
Java 8 specifics as areas of the project are touched.

Resolves BATCH-2536
2016-09-30 12:34:45 -05:00
Michael Minella
f4c0530730 Upgraded dependency versions and minor polish 2016-08-09 13:19:14 -05:00
Michael Minella
f731ae3603 Fixed integration tests 2016-08-08 17:29:36 -05:00
Michael Minella
e375771ba6 Fixed doc tags 2016-08-08 15:33:39 -05:00
Billy Korando
e754c8617a Update EnableBatchProcessing.java
Updating the Javadoc for EnablebatchProcessing to include additional beans it puts in context.
2016-08-08 15:16:23 -05:00
Nick Vanderhoven
f7e10909f9 BATCH-2513 Fix for typo in log statement of AbstractListenerFactoryBean.isListener 2016-08-08 13:21:36 -05:00
Lorenz Leutgeb
c7df668a31 Fix StaxEventItemReader example in docs
Problem:  When invoking xmlStaxEventItemReader.setUnmarshaller() one
          would get incompatible types as o.s.oxm.Marshaller cannot be
          converted to o.s.oxm.Unmarshaller.
Solution: Change type of marshaller to o.s.oxm.Unmarshaller.

Problem:  Changing the type of the marshaller variable to Unmarshaller
          would result in an unknown symbol setAliases() because
          Unmarshaller does not cover that method.
Solution: Just use the concrete type XStreamMarshaller.

Problem:  The variable name for our XStreamMarshaller which is used as
          Unmarshaller is called marshaller.
Solution: Rename the variable to unmarshaller.

See:
http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/oxm/xstream/XStreamMarshaller.html
http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/oxm/Unmarshaller.html
http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/oxm/Marshaller.html
2016-08-03 11:11:20 +02:00
Michael Minella
0d9a5e3aed Updated contributor's license agreement link 2016-07-21 09:18:25 -05:00
Andy Wilkinson
b6e3ccd457 Disable IO Platform tests in infrastructure-neo4j4 when using SDNeo4j3 2016-07-20 22:52:33 -05:00
Andy Wilkinson
5867606f4b Tighten up AutomaticJobRegistrar’s event listening
Previously, AutomaticJobRegistrar listened to all ApplicationEvents
despite only being interested in two ApplicationContextEvents, namely
ContextRefreshedEvent and ContextClosedEvent. This could lead to
an AutomaticJobRegistrar instance being created earlier than necessary.

This commits tightens up AutomaticJobRegistrar so that it only listens
to ApplicationContextEvents.

Closes BATCH-2506
See https://github.com/spring-projects/spring-boot/issues/2395
2016-07-20 22:25:58 -05:00
Coby Pritchard
fcf6e94248 Handle DB2 on the AS/400 (iSeries) and DB2 Server for VM and VSE
DB2 connections to the AS/400 report incorrectly back as DB2 z/OS. The
current AS/400 reports Database Product Name as "DB2 UDB for AS/400".
Database Product Version has three possible return values based on
product used:
JTOpen reports "07.01.0000 V7R1m0".
Native Driver reports "V7R1M0".
PRDID reports "QSQ07010"

http://www-01.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z10.doc.java/src/tpc/imjcc_c0053013.dita

Also added code to handle DB2 Server for VM and VSE.  This code should
handle the different DB2 Versions.
Spring Community Contributor
2016-04-22 15:41:02 -05:00
hvle
a6590c8c54 update football link
fix table format
2016-04-22 10:41:28 -05:00
hvle
a0b8e06a69 update football link 2016-04-22 10:41:27 -05:00
Andy Wilkinson
843be9c112 Ignore Neo4JItemReaderTests when testing against Spring Data Neo4J 4.x 2016-04-21 17:12:36 +01:00
Michael Minella
7d2c1a1eca Updated HibernateItemReaderHelper to use reflection for Session#close()
Hibernate 5 changed the signature of the Session#close() method from
returning a Connection to being void.  To support both verions, we've
moved to making the call via reflection.

This commit also upgrades the ActiveMQ version used in testing to be
compliant with the Spring IO Platform.

Resolves BATCH-2496
2016-04-20 22:51:05 -05:00
Michael Minella
ade242f2c4 Updated SimpleStepExecutionSplitter to return a Set with addressable elements 2016-04-19 16:31:23 -05:00
Michael Minella
6e0d0531ce Fixes default schema version 2016-04-19 16:14:22 -05:00
Michael Minella
c4522e2b00 Updated documentation to explain parent/child context relationship of JSR batch jobs 2016-04-19 14:55:24 -05:00
Marten Deinum
22109eea84 This commit adds a ExecutionContextSerializer based on Jackson2.
It has been tested with Jackson 2.3.3 which is the Jackson version
used with the Spring dependency.

Tests have been updated to use Hamcrest matchers and made a bit more reusable.
2016-04-19 12:54:59 -05:00
Michael Minella
b160996576 Created new Neo4J ItemReader to support Spring Data 4
This adds a new ItemReader that works with the Spring Data 4 updated
Neo4JOperations implementation as well as the updated data conversion
techniques.

Resolves BATCH-2473
2016-04-18 18:36:48 -05:00
Stefan Birkner
164bf175c9 Don't use hamcrest-all.
The library is considered to be used by people who download their
dependencies manually. If you use a dependency-manager then you should
use hamcrest-library. It has a dependency on hamcrest-core and does not
need exclusion of hamcrest-core for other dependencies.
2016-04-15 11:23:41 -05:00
jehanson
256e21263b Update schema-appendix.xml
Add JOB_CONFIGURATION_LOCATION column to documentaiton.
2016-04-15 10:58:13 -05:00
Glenn Renfro
12c8ec43c0 Updated the springioCheck to use the 0.0.5 spring-io plugin
And the latest snapshot of the platform.
2016-04-15 10:55:52 -05:00