Fix <websocket:interceptors> default configuration

Adding a ChannelInterceptor does not suppress default executor
settings anymore in the XML namespace.

Issue: SPR-11623
This commit is contained in:
Sebastien Deleuze
2014-03-31 09:05:28 +02:00
committed by Rossen Stoyanchev
parent 119dfd9cf9
commit fb7d81c4a2
3 changed files with 42 additions and 2 deletions

View File

@@ -293,6 +293,15 @@ public class MessageBrokerBeanDefinitionParserTests {
testExecutor("brokerChannel", 102, 202, 602);
}
// SPR-11623
@Test
public void customChannelsWithDefaultExecutor() {
loadBeanDefinitions("websocket-config-broker-customchannels-default-executor.xml");
List<Class<? extends MessageHandler>> subscriberTypes = Arrays.<Class<? extends MessageHandler>>asList(SubProtocolWebSocketHandler.class);
testExecutor("clientOutboundChannel", Runtime.getRuntime().availableProcessors() * 2, Integer.MAX_VALUE, 60);
}
@Test
public void messageConverters() {
loadBeanDefinitions("websocket-config-broker-converters.xml");