|
24 | 24 |
|
25 | 25 | import org.springframework.beans.BeanUtils;
|
26 | 26 | import org.springframework.beans.factory.BeanInitializationException;
|
| 27 | +import org.springframework.beans.factory.annotation.Qualifier; |
27 | 28 | import org.springframework.context.ApplicationContext;
|
28 | 29 | import org.springframework.context.ApplicationContextAware;
|
29 | 30 | import org.springframework.context.annotation.Bean;
|
@@ -149,7 +150,8 @@ public ApplicationContext getApplicationContext() {
|
149 | 150 |
|
150 | 151 |
|
151 | 152 | @Bean
|
152 |
| - public AbstractSubscribableChannel clientInboundChannel(TaskExecutor clientInboundChannelExecutor) { |
| 153 | + public AbstractSubscribableChannel clientInboundChannel( |
| 154 | + @Qualifier("clientInboundChannelExecutor") TaskExecutor clientInboundChannelExecutor) { |
153 | 155 | ExecutorSubscribableChannel channel = new ExecutorSubscribableChannel(clientInboundChannelExecutor);
|
154 | 156 | channel.setLogger(SimpLogging.forLog(channel.getLogger()));
|
155 | 157 | ChannelRegistration reg = getClientInboundChannelRegistration();
|
@@ -185,7 +187,8 @@ protected void configureClientInboundChannel(ChannelRegistration registration) {
|
185 | 187 | }
|
186 | 188 |
|
187 | 189 | @Bean
|
188 |
| - public AbstractSubscribableChannel clientOutboundChannel(TaskExecutor clientOutboundChannelExecutor) { |
| 190 | + public AbstractSubscribableChannel clientOutboundChannel( |
| 191 | + @Qualifier("clientOutboundChannelExecutor") TaskExecutor clientOutboundChannelExecutor) { |
189 | 192 | ExecutorSubscribableChannel channel = new ExecutorSubscribableChannel(clientOutboundChannelExecutor);
|
190 | 193 | channel.setLogger(SimpLogging.forLog(channel.getLogger()));
|
191 | 194 | ChannelRegistration reg = getClientOutboundChannelRegistration();
|
@@ -221,8 +224,9 @@ protected void configureClientOutboundChannel(ChannelRegistration registration)
|
221 | 224 | }
|
222 | 225 |
|
223 | 226 | @Bean
|
224 |
| - public AbstractSubscribableChannel brokerChannel(AbstractSubscribableChannel clientInboundChannel, |
225 |
| - AbstractSubscribableChannel clientOutboundChannel, TaskExecutor brokerChannelExecutor) { |
| 227 | + public AbstractSubscribableChannel brokerChannel( |
| 228 | + AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, |
| 229 | + @Qualifier("brokerChannelExecutor") TaskExecutor brokerChannelExecutor) { |
226 | 230 |
|
227 | 231 | MessageBrokerRegistry registry = getBrokerRegistry(clientInboundChannel, clientOutboundChannel);
|
228 | 232 | ChannelRegistration registration = registry.getBrokerChannelRegistration();
|
@@ -411,7 +415,7 @@ public UserDestinationMessageHandler userDestinationMessageHandler(
|
411 | 415 | public MessageHandler userRegistryMessageHandler(
|
412 | 416 | AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel,
|
413 | 417 | SimpUserRegistry userRegistry, SimpMessagingTemplate brokerMessagingTemplate,
|
414 |
| - TaskScheduler messageBrokerTaskScheduler) { |
| 418 | + @Qualifier("messageBrokerTaskScheduler") TaskScheduler messageBrokerTaskScheduler) { |
415 | 419 |
|
416 | 420 | MessageBrokerRegistry brokerRegistry = getBrokerRegistry(clientInboundChannel, clientOutboundChannel);
|
417 | 421 | if (brokerRegistry.getUserRegistryBroadcast() == null) {
|
|
0 commit comments