DefaultMessageBus now sets channelRegistry only when activating endpoints (not when registering).

This commit is contained in:
Mark Fisher
2008-09-08 16:51:34 +00:00
parent fb2c5f3237
commit 722f143244

View File

@@ -214,9 +214,6 @@ public class DefaultMessageBus implements MessageBus, ApplicationContextAware, A
}
public void registerEndpoint(MessageEndpoint endpoint) {
if (endpoint instanceof ChannelRegistryAware) {
((ChannelRegistryAware) endpoint).setChannelRegistry(this);
}
this.endpointRegistry.registerEndpoint(endpoint);
if (this.isRunning()) {
this.activateEndpoint(endpoint);