Commit Graph

317 Commits

Author SHA1 Message Date
Artem Bilan
f4990eebd8 Downgrade to Gradle 2.14
Neither Bamboo (Artifactory Gradle), nor Spring IO plugin supports Gradle 3.x
2016-09-21 17:18:31 -04:00
Artem Bilan
9a13e41d96 GH-164: Fix ZipTransformer deleteFile Mode
Fixes GH-164 (https://github.com/spring-projects/spring-integration-extensions/issues/164)

* Move `deleteFile` logic to the end of of `ZipTransformer#doZipTransform()`
* Add `deleteFile = true` for the `ZipTransformerTests`
* Add `<request-handler-advice-chain>` to the transformers XSD definitions
* Upgrade to Gradle 3.0
* Upgrade dependencies

Move delete logic before reply message creation
2016-09-21 16:54:27 -04:00
Gary Russell
0ba841416b Fix Contributing Link 2016-07-11 05:17:08 -04:00
Artem Bilan
7e0443d34b Some upgrades and polishing 2016-07-06 17:09:19 -04:00
Dave Syer
92a01dbe29 Migrate leader election support from Spring Cloud
Fix `LeaderInitiator`

* Implement `SmartLifecycle` instead of just `Lifecycle`
* Add `Assert`s
* Rework logic from `IMap` for locks just into single `ILock`, since we require it only for the `role` as a key
* Fix `Future.cancel(true)` logic via rescheduling
See https://jira.spring.io/browse/INT-4058 and its commit comments
* Add more complex test-case to meet distributed requirements and verify several `yield()` cycles
2016-07-06 16:43:06 -04:00
englishman
8dcca5b676 INTEXT-219 Remain request headers after splitting
JIRA: https://jira.spring.io/browse/INTEXT-219

INTEXT-219: add unit test

INTEXT-219: fix missed headers

INTEXT-219: update file headers

INTEXT-219: simplify context

INTEXT-219: add test for preserving service header values

INTEXT-219: rename auxiliary methods

Code style polishing
2016-04-06 10:34:41 -04:00
erenavsarogullari
0efd494337 INTEXT-158: JavaConfig tests and upgrades
JIRA: https://jira.spring.io/browse/INTEXT-158

* Provide the test cases to demonstrate the Spring Integration Hazelcast adapters usage from the JavaConfig
* Upgrade to Hazelcast-3.6, SI-4.2.4, Gradle-2.5
* Fix Hazelcast-3.6 compatibility
* Fix failing tests
2016-01-26 15:24:58 -05:00
Spring Buildmaster
1759030fda [artifactory-release] Next development version 2016-01-08 09:24:48 -08:00
Spring Buildmaster
c6c154220d [artifactory-release] Release version 1.0.0.M1 2016-01-08 09:24:45 -08:00
Artem Bilan
cd37ecae9a ZIP: More Polishing 2016-01-08 12:15:31 -05:00
Artem Bilan
0a5fedcd7a Zip: Some deep cleanup and polishing
* Upgrade to Gradle-2.5, SI-4.2.4
* Remove redundant dependencies
* Add `slf4j-log4j12` to avoid log noise during testing
* Add `settings.gradle` to allow Artifactory Release Management
* Move XSD stuff to the proper place - `org\springframework\integration\zip\config`
* Get rid of manual `enum` transformation in the `Parser`:
  - we can't do that there because `property-placeholder` and SpEL are processed later
  - no reason to do that at all - `enum`s are properly converted by the SF during bean population phase
* Fix `UnZipTransformer` to `delete()` file in the `finally` block after closing the `InputStream` on file
2016-01-07 21:44:23 -05:00
Filippo Balicchia
f7b31228c2 INTEXT-215: Cassandra Namespace Support
JIRA: https://jira.spring.io/browse/INTEXT-215
2016-01-05 12:13:10 -05:00
Artem Bilan
2e9247711d INTEXT-195: Add XMPP Extension for Smack 4.1
JIRA: https://jira.spring.io/browse/INTEXT-195

Upgrade to Smack 4.1

Rework logic to the `XMPPConnection` interface

Refactoring for the `XmppConnectionFactoryBean` to extract `serviceName` from the `user`.

Remove redundant dependencies

Add `smack-java7` dependency and some other polishing after testing

Polishing
2015-10-28 17:16:14 -04:00
Artem Bilan
0867be2faf Upgrade to SI-4.2.0.RELEASE 2015-09-09 16:38:25 -04:00
erenavsarogullari
573e1f301f INTEXT-167: Add Cluster Monitor Channel Adapter
JIRA: https://jira.spring.io/browse/INTEXT-167

Some refactorings are done.

Hazelcast Cluster Monitor Unit Test Refactorings are done.

Some minor bug fixes are done.

Redundant assert is removed.

HazelcastInstance lifecycle check is added

Migration Event UT Case is updated.

Code style polishing and upgrade to the `spring.io.plugin-0.4.0`
2015-07-15 13:53:32 -04:00
Artem Bilan
5c136e45c9 Cassandra: Compatibility with IO-2.0 2015-06-25 10:05:49 -04:00
Artem Bilan
8f45e1caec Hazelcast: Compatibility with IO-2.0
* Add IO plugin
* Upgrade to Gradle 2.4
* Upgrade dependencies
* Upgrade to Hazelcast-3.5 and therefore make compatible with IO-2.0
* All these changes and tests make this module compatible with SI-4.2
2015-06-23 22:10:17 -04:00
Gunnar Hillert
416cc39da4 INTEXT-40 Add ZIP Transformer
* Add zip-transformer
* Add unzip-transformer
* Add UnZipResultSplitter
* Add sample

For reference see: https://jira.springsource.org/browse/INTEXT-40
2015-06-15 17:36:44 -04:00
Spring Buildmaster
ba52da8d0c [artifactory-release] Next development version 2015-06-11 17:48:20 -07:00
Spring Buildmaster
fdbbd74c4e [artifactory-release] Release version 0.5.0.RELEASE 2015-06-11 17:48:17 -07:00
Artem Bilan
6747b0605f Cassandra: polishing before release 2015-06-11 16:02:07 -04:00
Artem Bilan
2bcd54cfba INTEXT-50: Cassandra Adapter Improvements
JIRA: https://jira.spring.io/browse/INTEXT-50

More improvements

`Void` returns handling
2015-05-27 15:43:08 -04:00
Soby Chacko
b9089fb419 INTEXT-50: Add Cassandra Adapters
JIRA: https://jira.spring.io/browse/INTEXT-50
2015-05-13 14:05:48 +03:00
Eren Avsarogullari
c6975af37b INTEXT-149: Refactor HCCacheWritingMessageHandler
JIRA: https://jira.spring.io/browse/INTEXT-149

Some refactorings are done.

Polishing

* Add `IllegalStateException` for wrong `distributedObject`
* Add an invalid test to attempt to write to `ILock`
2015-05-12 15:22:01 +03:00
Spring Buildmaster
37d70e0e84 [artifactory-release] Next development version 2015-04-20 03:15:21 -07:00
Spring Buildmaster
af4583fe27 [artifactory-release] Release version Hzelcast 1.0.0-M1 2015-04-20 03:15:08 -07:00
Eren Avsarogullari
95f7b239f7 INTEXT-150 Extract Hazelcast Headers and Payloads
JIRA: https://jira.spring.io/browse/INTEXT-150

Refactorings are committed.

Polishing:
* Add generic type to the `AbstractHazelcastEventListener` for cleaner implementors
* Remove redundant `Assert`s
* Polishing some code style
2015-04-15 23:59:28 +03:00
Artem Bilan
20d0192fc0 INTEXT-163: Add JT400 Module
JIRA: https://jira.spring.io/browse/INTEXT-163
2015-04-13 10:25:08 +01:00
Artem Bilan
4ed2153a45 INTEXT-161 Add <poller> to the <int-hz:o-c-a>
JIRA: https://jira.spring.io/browse/INTEXT-161
2015-04-04 17:32:38 +03:00
erenavsarogullari
bfec7640ca INTEXT-142: Add Spring Integration Hazelcast
JIRA: https://jira.spring.io/browse/INTEXT-142
2015-04-03 12:56:48 +03:00
Artem Bilan
fddd7e47b4 INTEXT-122: Make XSD versionless from SI-core XSD
JIRA: https://jira.spring.io/browse/INTEXT-122

Fix for SMPP. All other extensions will be fixed on demand, when they will be upgraded to SI 4.0 or higher
2014-12-05 19:39:33 +02:00
Gary Russell
3318a4ddeb INTEXT-39 Remove Experimental WebSocket Code
JIRA: https://jira.spring.io/browse/INTEXT-39
2014-11-19 17:54:45 -05:00
Artem Bilan
05b7f39f39 Move AWS to separate repo 2014-11-17 13:45:16 +02:00
Artem Bilan
3268e0a2f7 Move Kafka to the separate repo 2014-11-17 13:26:00 +02:00
Artem Bilan
6b37a400d9 Move Splunk to the individual repo 2014-11-17 12:26:59 +02:00
Flemming Jønsson
85334c7e90 INTEXT-118: Fox for long messages with newlines
JIRA: https://jira.spring.io/browse/INTEXT-118

It also tests long messages without newlines to verify that the fix works for both types of long messages.

INTEXT-118: Replace regular expression split with standard substring to split message into subparts with max length.
The regular expression used earlier failed splitting messages that contained newlines correctly. (See SmesMessageSpecificationTest)

Corrected spelling in constants

Polishing
2014-11-15 19:15:52 +02:00
Artem Bilan
ecd539d1dc DSL: Move Java DSL to the separate repo 2014-11-13 11:40:04 +02:00
Spring Buildmaster
4caccc2ae0 [artifactory-release] Kafka Next development version 2014-11-12 14:16:42 -08:00
Spring Buildmaster
4f4717d9f5 [artifactory-release] Release version Kafka 1.0.0.M2 (#2) 2014-11-12 14:16:38 -08:00
Ilayaperumal Gopinathan
b899ff0ffd Add StringDecoder for kafka messages
- Add StringDecoder for decoding kafka key/value messages

Refactor StringDecoder
2014-11-12 16:00:12 -05:00
Spring Buildmaster
bfdcd7ad1d [artifactory-release] Kafka Next development version 2014-11-12 09:23:19 -08:00
Spring Buildmaster
b28faa34d9 [artifactory-release] Release version Kafka 1.0.0.M2 2014-11-12 09:23:15 -08:00
Ilayaperumal Gopinathan
cad2be0496 INTEXT-111: Allow PP for Kafka producer context
JIRA: https://jira.spring.io/browse/INTEXT-111

 - Remove hard coded names for bean names at the producer context parser
 - Fix and update tests
 - Remove the use of `BeanFactory` to get the producerConfigurations in
KakfaProducerContext and use setter to set the producerConfigurations
 - Add logic to send the message from producer configuration when there
is no header specified for the topic and single producer configuration
is used.

Add tests to verify placeholder values

Fix code review comment and formatting

Polishing code style.

Add `KafkaProducerContext#theProducerConfiguration` for single `producerConfigurations` entry to avoid iterators
2014-11-12 11:20:49 +02:00
Artem Bilan
b8d986167c DSL: O-Gs: requiresReply="true" by default
Since many `outbound-gateway`s are designed to always expect replies and XML configuration
specifies `requires-reply="true"` for them by default, the DSL should follow with that.
2014-11-10 18:36:36 +02:00
Artem Bilan
57caf41fb2 DSL: Use generic AppListener fromIntFlowBPP
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-JOB1-1189

Since `spring-integration-even` is optional dependency, the usage of `ApplicationEventListeningMessageProducer` is wrong.
Changing it to the generic `ApplicationListener` doesn't hurt for any inline components from Flow definition, when there is an interest to handle Events.
2014-11-10 13:04:40 +02:00
Artem Bilan
a04cdbf77f DSL: Register AELMP as AL in the AEM
Register `ApplicationEventListeningMessageProducer` as `ApplicationListener` in the `ApplicationEventMulticaster`

Since `ApplicationContext` invokes its `registerListeners()` before the `IntegrationFlowBeanPostProcessor` does its stuff,
the `ApplicationEventListeningMessageProducer` hasn't been visible as an `ApplicationListener` bean, when it is defined from `IntegrationFlow`,
hence add a logic to register it to the `ApplicationEventMulticaster` from `IntegrationFlowBeanPostProcessor`.
2014-11-08 19:53:36 +02:00
Christos Kapasakalidis
b44bf47d62 INTEXT-80 - FIX S3 ConnectionPoolTimeoutException
JIRA: https://jira.spring.io/browse/INTEXT-80

When synchronizing to local directory, getObject was called without
ever closing the InputStream that the SDK opens causing an
"org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting
for connection" exception. To fix that, after synchronization, the
inputStream of the s3Object is closed, causing the s3 client to release
the connection.
2014-11-06 17:35:30 +02:00
Artem Bilan
13ea2d9111 DSL: Fix RouterSpec for several subflows
The root of the issue is the order of bean registration in the beanFactory.
In this case the first subflows is registered correctly, but the next one has been registered after `RouterSubFlowMappingProvider`.
In this case the input `channel` of the next subflow hasn't been registered yet, hence `NPE` in the `this.router.setChannelMapping`
from `@PostConstruct` of `RouterSubFlowMappingProvider`.

Move the `RouterSubFlowMappingProvider` to end of `componentsToRegister` collection to give a chance to register all subflows before the `RouterSubFlowMappingProvider`.
2014-11-01 10:50:59 -04:00
Spring Buildmaster
e144feb1b3 [artifactory-release] Next development version 2014-10-31 12:07:29 -07:00
Spring Buildmaster
879024d97e [artifactory-release] SI Java DSL release version 1.0.0.RC1 2014-10-31 12:07:24 -07:00