Commit Graph

4961 Commits

Author SHA1 Message Date
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
Michael Minella
5a803937c7 Fixed link to code of conduct in README 2016-02-02 11:40:25 -06:00
Michael Minella
29081f47cc Added code of conduct 2016-02-02 11:36:41 -06:00
Rick Craver
b7b2bb3127 fix assert message in PatternMatchingCompositeLineMapper.java
per BATCH-2427, changed assertion message to say "The 'patternMatcher' property must be non-null"
2015-11-25 16:43:35 -06:00
mark kouba
f6d22f4f80 add shutdown for thread pool task executor so it cleans up and shutdowns
correctly before method exits.
2015-11-25 16:18:56 -06:00
Michael Minella
f14e3fd10f Updated step references 2015-11-25 12:28:08 -06:00
Michael Minella
d81c0d9262 Fixed typo in java config 2015-11-20 17:52:50 -06:00
Andy Wilkinson
680eab2095 Update the tests to use the latest version of JRuby 1.x
Previously, the JRuby engine that was being used pulled in an old
version of JRuby. The engine is incompatible with more recent JRuby 1.x
releases which causes problems for the Spring IO Platform which uses
JRuby 1.7.x.

This commit updates the tests to use the latest version of JRuby 1.x
(1.7.22) which contains its own JSR 223 integration, i.e. there’s no
need for a separate script engine dependency.
2015-11-20 17:30:59 -06:00
Andy Wilkinson
2f552b7449 Make FlatFileItemReaderTests Spring Framework 4.2 compatible
Previously, FlatFileItemReaderTests made a precise assertion that
involved the toString output from ByteArrayResource. This output
has changed between Spring Framework 4.0.x and Spring Framework 4.2.x.
As a result, the test fails when run as part of the Spring IO Platform
build which forces the version of Spring Framework to 4.2.x.

This commit updates the failing test so that it passes against both
Spring Framework 4.0.x and Spring Framework 4.2.x by relaxing the
assertion a little so that it is not dependent on the precise output
of ByteArrayResource's toString method.
2015-11-20 17:08:06 -06:00
Andy Wilkinson
68ee9a2916 Update SmokeTests to be compatible with Spring Integration 4.2
Spring Integration 4.2 has fixed a bug where integration components
were being started too early. SmokeTests was relying on this bug to
start the test class which is also a @MessageEndpoint.

This commit updates the test to use a nested inner-class for the
endpoint and a bean declaration in the XML configuration. This allows
the test to pass against both Spring Integration 4.0 and 4.2.
2015-11-20 16:50:10 -06:00
LinkedList
38fa0895ab Fix FlatFileItemReader example in documentation
Issue: BATCH-2164
2015-11-20 16:17:15 -06:00
guilhermerama
c7ef097c25 partitionJob.xml shouid demonstrate asynch process
The README file on samples describes  the partitionJob as an example of the asynch process feature, so I changed the class of the taskExecutor to SimpleAsyncTaskExecutor
2015-11-20 12:49:11 -06:00
Michael Minella
aef9a52d40 Added test to verify concurrent transactions with HSQLDB 2015-11-09 13:36:57 -06:00
Michael Minella
eafa7ee152 BATCH-2313: Fixed regression of BATCH-2153 by updating HashMap to ConcurrentHashMap 2015-10-15 16:04:00 -05:00
Philippe Marschall
dcc9da8273 BATCH-2407 Use StringBuilder instead of StringBuffer
With Java 1.5 StringBuilder is preferred over StringBuffer for single
threaded access as is has less overhead.

This is evidenced by the class comment of StringBuffer and Effective
Java 2nd Edition Item 67: Avoid excessive synchronization.

> The StringBuilder class should generally be used in preference to
> this one, as it supports all of the same operations but it is faster,
> as it performs no synchronization.

 - replace StringBuffer with StringBuilder where possible

Issue: BATCH-2407
2015-08-06 10:22:39 -05:00
Philippe Marschall
7092102748 BATCH-2411 Remove @SuppressWarnings("unchecked")
The source code contains various @SuppressWarnings("unchecked") that
are no longer unnecessary since the relevant APIs have been upgraded to
support Java 5 generics.

 - remove @SuppressWarnings("unchecked") where no longer unnecessary

Issue: BATCH-2411
2015-08-05 18:04:40 -05:00
Philippe Marschall
3783345c55 BATCH-2412 Add guards around debug statements
In various places in the code base a debug message is constructed
unconditionally. This adds unnecessary overhead in the common case when
debug logging is off.

 - add guards around debug statements in non-test code

Issue: BATCH-2412
2015-08-05 12:04:44 -05:00
Philippe Marschall
7ec7152c5e BATCH-2410 junit.framework.Assert is deprecated 2015-07-31 12:44:25 -05:00
Michael Minella
9279280b3e Updated test for Spring 4.2 support 2015-07-29 10:31:45 -05:00
Alex Jablonski
cbc83015d5 Add regression unit test covering behavior reported in BATCH_2346
Observed that deleting the code fixing issue BATCH_2346 didn't cause
any tests to fail
2015-07-14 14:21:41 -05:00
Jonathan Gray
dc6a2c93b8 BATCH-2402 Refactored (behaviour is exactly the same) to avoid temporary String allocation in order to be more memory space efficient. This helps to avoid garbage collection with large numbers of batch lines and large numbers of quoted tokens. 2015-07-10 12:17:08 -05:00
Amer Aljovic
716c9baff3 BATCH-2312 Implement ItemStream in AsyncItemWriter
This commit adds the feature of allowing a delegate ItemWriter to be an
ItemStreamWriter and have Spring Batch respect the ItemStream lifecycle
events without explicitly configuring the delegate as a stream.
2015-07-09 16:58:59 -05:00
Andy Wilkinson
ff2b6a8cee Remove remaining dependencies on ParameterizedRowMapper
This is a follow-on from adc2f79. It removes the remaining references
to ParameterizedRowMapper and should, therefore, make things fully
compatible with Spring Framework 4.2.
2015-07-09 16:04:50 -05:00
Andy Wilkinson
86e1ca6f8c Use the latest version of the Spring IO Plugin
Spring IO Platform 2.0 will remove the managed versions .properties
file as support for it has been removed in Spring Boot 1.3.

This commit moves the build onto a new version of the Spring IO Plugin
that uses the Maven bom rather than the properties file.
2015-07-08 10:22:07 +01:00
Michael Minella
973fe44d6c Added comment 2015-06-15 11:14:45 -05:00
Matthew Ouyang
248b5a69a7 BATCH-2380: disallow null + empty delimiter 2015-06-12 23:29:30 -04:00
jpraet
61638d52bd BATCH-2311 JobLauncher allows restart of job_execution with status
UNKNOWN

* additionally prevent restart of step executions with status STARTING,
STARTED or STOPPING
* additionally prevent restart of job executions with status UNKNOWN or
STOPPING
2015-06-09 10:06:15 -05:00
Christian Ramseier
77be8b97b4 use current classloader to get the proxied repository 2015-06-08 16:29:51 -05:00
Michael Minella
7be035cd3d Fixed NPE in integration test 2015-05-20 22:31:30 -05:00