Commit Graph

309 Commits

Author SHA1 Message Date
Mark Pollack
b9b09b08b8 Change remoteRepositories default to libs-milestone for M3 release 2015-12-21 18:00:53 -05:00
Mark Fisher
98863db7c2 reverted to snapshot repo for module resolution 2015-12-21 17:07:34 -05:00
bamboo
b869cb8c4b [artifactory-release] Next development version 2015-12-21 17:18:25 +00:00
bamboo
f3d46fc120 [artifactory-release] Release version 1.0.0.M3 2015-12-21 17:18:25 +00:00
Mark Pollack
17d49bebde Default repository location for ModuleResolverProperties should be libs-milestone 2015-12-21 11:53:48 -05:00
Ilayaperumal Gopinathan
7550a89a25 Fix doc 2015-12-21 13:25:21 +05:30
Gary Russell
7ee5df4033 RabbitMQ Cleanup (New Tests).
Simple polishing.
2015-12-18 22:24:12 -05:00
Ilayaperumal Gopinathan
100a68c1bf GH-196 Add Message History Tracking
- Add `MessageChannelConfigurer` that any class that configures the message channel would implement
   - Have `message-converter` and `message-history-tracking` configurer implement this interface
  - Autowire all available configurers and use them to configure the message channel
  - For the message history tracking
    - add `channel-binding` properties as part of message header along with `timestamp`

 - Introduce CompositeMessageChannelConfigurer

Remove field injection of messageChannelConfigurer

Add tests for message track history configurer

Add content-type configurer test

Address review comments

 - Add `toString` to BindingProperties
 - Add test case to depict producer/consumer properties

Remove processor channels from tests
2015-12-18 20:13:40 -05:00
Mark Pollack
001ad52f4a Add additional doc correction 2015-12-18 16:59:29 -05:00
Marius Bogoevici
7b077817e5 GH-240 GH-235 Documentation review, partitioning
* Add multibinder docs

Resolves #240, #235
2015-12-18 16:52:39 -05:00
Mark Pollack
56f6874627 Update to spring-cloud-commons 1.1.0.M3 2015-12-18 10:59:13 -05:00
Mark Pollack
fb215413e8 Use small jre8 docker image for module launcher 2015-12-18 10:51:42 -05:00
Eric Bottard
286ba44ff1 Remove TODOs 2015-12-18 16:44:08 +01:00
Mark Pollack
de2463a4e6 Update to spring-cloud-build 1.1.0.M4 and spring-cloud-common 1.1.0.M3
* tidy up pom to remove redundant section
* provide simple fall back for building non branch changes in travis
* Add -s .settings.xml to .mvn/maven.config
2015-12-18 10:34:04 -05:00
Mark Fisher
9dfa9c9218 renamed ChannelFactory to BindableChannelFactory
This clarifies the contract as this interface is intended for
creation/configuration of the bindable channels only.
2015-12-18 09:17:27 -05:00
Ilayaperumal Gopinathan
3afa3d8bd3 Remove configuring shared message channel
Simplify ChannelFactory interface

 - Use separate methods for each message channel type (Subscribable/Pollable)
2015-12-18 09:07:48 -05:00
Mark Pollack
13247b191a Build docs on PR requests in Travis CI 2015-12-17 22:39:11 -05:00
Gary Russell
2672858982 GH-236: EmbeddedHeadersMessageConverter Multibyte
Fixes #236

Buffer overflow when converting multi-byte characters from
Unicode to UTF-8.
2015-12-17 19:28:51 -05:00
Gary Russell
cd8a9ffd16 GH-234: Update SI to 4.2.4.RELEASE
Resolves #234
2015-12-17 19:07:17 -05:00
Mark Fisher
df1817cc51 polishing 2015-12-17 18:38:35 -05:00
Marius Bogoevici
a4f97b364e Binders with default settings inherit from module's configuration
Resolve #229

* Optimizes connection factory creation for binders that can use Boot's autoconfiguration
* Make binder contexts a child of main context when creating a Binder with default configuration settings
* Inherit environment from main context when the Binder context is not a child, and make that optional
* Default environment inheritance to true
* Tests
2015-12-17 11:51:10 -05:00
Dave Syer
44d3fa4a90 Inherit Environment from main context when creating a Binder
The DefaultBinderFactory makes use of SpringApplicationBuilder to
build a context containing a binder. It has access to the Environment
of the surrounding context, but doesn't use it, and doesn't use it
(before this change). Users will be surprised if (for instance) they
change the default rabbitmq hostname and the change doesn't propagate
to the binder.
2015-12-17 15:00:19 +00:00
Eric Bottard
81b04de222 Expose configuration metadata groups 2015-12-15 10:39:41 -05:00
Mark Pollack
c96c6fcd22 Add -s .settings.xml back to .travis.yml maven command 2015-12-11 17:23:24 -05:00
Marius Bogoevici
bf178360ee Remove autoconfig
Ensure that the autoconfig and the cloud config don't overlap

Removed SeedConfiguration
2015-12-10 13:35:26 -05:00
Marius Bogoevici
029cacb419 Make error message check on converter missing more lenient in tuple tests 2015-12-10 12:59:36 -05:00
Mark Pollack
e7712bf122 Travis updates
* No need to reference .settings.xml as it is picked up automatically
* Switch to force snapshot updates on PR builds
2015-12-10 11:04:32 -05:00
Marius Bogoevici
a4fe3efaef Disabling SpringApplicationAdmin for binders, as they are under the control of the main application 2015-12-09 17:58:12 -05:00
Mark Pollack
1336440533 Add maven based docs, remove ./docs directory 2015-12-09 16:28:37 -05:00
Gary Russell
d64a2e1335 GH-224: Update to SI 4.2.3.RELEASE
resolves #224
2015-12-09 15:08:57 -05:00
Marius Bogoevici
95b3c4e47b Change test binder to always override existing binders 2015-12-09 14:21:09 -05:00
Marius Bogoevici
96f96f7621 Initial implementation of multibinder support
- Addresses #138,#172,#173 with support for multiple binders in an application
- Binders can be of multiple types (e.g. Rabbit or Kafka), as well as multiple binders of the same type connecting to different system (e.g. multiple Rabbit binders connecting to different Rabbit clusters)
- Binders are now created in a separate context, allowing for multiple configurations
- Adds the `spring.cloud.spring.binders` namespace that allows for creating configuration properties for multiple binders
- Add support for default binder, modify Kafka tests to use multiple brokers when running embedded
2015-12-09 11:08:04 -05:00
Sabby Anandan
ac395f84e5 Add waffle badges and Bamboo build icon 2015-12-07 17:21:49 -05:00
Mark Pollack
1302808918 Add missing colon to travis.yml 2015-12-07 15:49:51 -05:00
Mark Pollack
ed2c4f3146 Add missing quote for .travis.yml script command 2015-12-07 15:33:57 -05:00
Eric Bottard
d8c1971c43 GH-92: Remove build log noise
Resolves spring-cloud/spring-cloud-stream#92

Also

* Remove publishing build configuration from .travis.yml

This are not needed as we use Bamboo for release managment

* javadoc and surefire plugins added to pom.xml
2015-12-04 12:26:45 -05:00
Mark Fisher
4e5277c0d0 removed unnecessary dependencies 2015-11-30 18:02:18 -05:00
Marius Bogoevici
bcff75b20b GH-213 Merge Binder SPI into Core
- Moved contents of `spring-cloud-stream-binder-spi` into `spring-cloud-stream`
- Removed `spring-cloud-stream-binder-local` and used local binder implementation for tests exclusively
2015-11-30 17:28:24 -05:00
Gary Russell
6f1f246dfb GH-211: PubSub Group Default to Random UUID
Resolves #211

Add a default UUID to the `BindingProperties.group` so a pubsub binding is
unique unless the group is specifically set.
2015-11-30 13:32:31 -05:00
Mark Pollack
3241e46c91 Add support for arrays in tuple conversion and general tuple tests 2015-11-27 10:08:12 +05:30
Ilayaperumal Gopinathan
73ba7b059d Fix deprecated use of boot's showBanner
- Use setBannerMode instead
2015-11-20 08:37:59 -05:00
Marius Bogoevici
770047871b Moved Rabbit management outside with the Rabbit bus 2015-11-19 17:15:02 -05:00
Ilayaperumal Gopinathan
ae770cec69 Use ChannelFactory
- ChannelFactory to create message channels and configure message converters

Autowire ChannelFactory

Create message channel on demand

ChannelFactory implementation to use SharedChannelRegistry

Create ChannelFactory interface
2015-11-19 14:52:33 -05:00
Gary Russell
d3c87daf64 GH-203: Support Late Binding with RabbitMQ
If the broker was down, the binding failed. Defer the queue/exchange/binding declarations
until the broker is available (already supported by `RabbitAdmin`.

Solves spring-cloud/spring-cloud-stream#203

Fix PubSub, Test

- Too many binder prefixes on pub sub queue name.
- Mismatched queue args in test case.
2015-11-19 10:28:58 -05:00
Marius Bogoevici
2d245c0424 GH-204 consistent common classloader creation 2015-11-18 16:30:38 -05:00
Marius Bogoevici
522881e879 Ignore RawModeKafkaBinderTests#createInboundPubSubBeforeOutboundPubSub 2015-11-11 13:58:11 -05:00
Gary Russell
a375e61260 XD-3519: Rabbit Taps
- instead of publishing to the default exchange, producers now publish to a topic exchange, to which the main queue is bound
- taps on a stream simply bind a queue to the same exchange with a name including the group for the tapping stream and a
    routing key pattern `#`
 - this means that multiple instances of the same tap stream will compete but multiple tap streams will get a copy
- for partitioned data, a single topic exchange is used, which each partition queue bound with its name as the routing key
 - this means taps on partitioned data see the consolidated messages

Remove unused binder utilities.

Use TopicExchange Always

Use a TopicExchange when binding a pubSub producer for consistency.

Remove Deprecated Binder Method

Add group to BindingProperties

- also fix artifact name in test support pom
- also fix some kafka tests (does not imply that kafka taps work - yet)
2015-11-10 20:25:49 -05:00
Eric Bottard
80b1d28be1 Issue #170
Set the Spring Integration EvaluationContext on Expressions that are parsed when converting String->Expression via the SpelExpressionConverter
2015-11-09 10:24:07 -05:00
Thomas Risberg
1b10c8801a XD-3651 Fix handling of numeric, boolean and null values 2015-10-29 18:03:00 -04:00
Artem Bilan
2e7f9cc729 GH-166: Fix ChannelBinder config inconsistency
Fixes GH-166 (https://github.com/spring-cloud/spring-cloud-stream/issues/166)

Since `onInit()` in the `MessageChannelBinderSupport` was called before the `evaluationContext` population,
the `RedisMessageChannelBinder#errorAdapter` caused `NPE` for its `evaluationContext`.

* Change the initialization order
* Use `ExpressionUtils` to populate `evaluationContext` - creates `StandardEvaluationContext` if there is no one in the `applicationContext`
* Add more initializations for the `RedisMessageChannelBinder#errorAdapter`
* Remove explicit `evaluationContext` population from the `AbstractTestBinder` to rely on the fix for this ticket
* Some other simple polishing

Address PR comments
2015-10-29 16:41:34 -04:00