diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/aggregate/AggregateApplication.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/aggregate/AggregateApplication.java index 198e15784..39247228a 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/aggregate/AggregateApplication.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/aggregate/AggregateApplication.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -111,6 +111,7 @@ public class AggregateApplication { return new SpringApplicationBuilder(module) .web(false) .bannerMode(Mode.OFF) + .properties("spring.jmx.default-domain=" + module) .properties(CHANNEL_NAMESPACE_PROPERTY_NAME + "=" + namespace) .registerShutdownHook(false) .parent(applicationContext); diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BindableProxyFactory.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BindableProxyFactory.java index 677a1e7f4..5f80be48f 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BindableProxyFactory.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BindableProxyFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -131,6 +131,7 @@ public class BindableProxyFactory implements MethodInterceptor, FactoryBean adapters; + @Bean(name = PollerMetadata.DEFAULT_POLLER) @ConditionalOnMissingBean(PollerMetadata.class) public PollerMetadata defaultPoller() { @@ -51,8 +55,7 @@ public class ChannelBindingAutoConfiguration { } @Bean - @Autowired(required=false) - public ChannelsEndpoint channelsEndpoint(List adapters, ChannelBindingServiceProperties properties) { + public ChannelsEndpoint channelsEndpoint(ChannelBindingServiceProperties properties) { return new ChannelsEndpoint(adapters, properties); }