Commit Graph

296 Commits

Author SHA1 Message Date
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
Marius Bogoevici
c979f1baa8 Add missing @ConfigurationProperties on sample
Required after it became mandatory in Spring Boot:

3740c817d3
https://github.com/spring-projects/spring-boot/issues/3460
2015-10-29 16:38:20 -04:00
Mark Pollack
a816947261 Change spring-cloud-build and commons to snapshot release 2015-10-23 16:32:05 -04:00
bamboo
7dc9f2e324 [artifactory-release] Next development version 2015-10-23 19:34:46 +00:00
bamboo
bd22e119c8 [artifactory-release] Release version 1.0.0.M2 2015-10-23 19:34:44 +00:00
Mark Pollack
1c374eead7 Tidy up maven dependency references to current project version 2015-10-23 15:17:34 -04:00
Eric Bottard
7023e16196 XD-3414: Create a new project for @RedisRule 2015-10-23 13:06:36 -04:00
Mark Pollack
1e4c8bd749 Update spring cloud commons and remove unecessary SI version property 2015-10-22 16:51:25 -04:00
Mark Pollack
02dd05ec22 Update to Spring Cloud Build M2 2015-10-22 16:20:13 -04:00
Ilayaperumal Gopinathan
7b08488f36 Remove explicit setting of jmx domain name
- It is assumed to be the responsibility of the user to specify the appropriate jmx domain name for the modules (either via s-c-dataflow or via module launcher)
2015-10-22 10:05:23 -04:00
Marius Bogoevici
4315b1d9d2 Update README file after removing default classifier from ModuleLauncher 2015-10-21 22:28:22 -04:00
Mark Fisher
c51cd5f2c0 no longer assuming "exec" classifier for modules 2015-10-21 15:24:20 -04:00
Eric Bottard
9b1e418411 XD-3355, XD-3582: Support options metadata 2015-10-20 14:24:52 -04:00
Dave Syer
04b0ad7dbf Revert profile and add comment 2015-10-20 09:34:47 -04:00