Fix issue with StompSubProtocolHandler initialization
This change ensures that StompSubProtocolHandler is injected with an
ApplicationEventPublisher for both the Java and XML config.
Backport for:
0dddb6f3e14372dac002
Issue: SPR-11825
@ -90,6 +91,9 @@ public class WebMvcStompEndpointRegistry implements StompEndpointRegistry {
@@ -90,6 +91,9 @@ public class WebMvcStompEndpointRegistry implements StompEndpointRegistry {
@ -46,16 +45,11 @@ public abstract class WebSocketMessageBrokerConfigurationSupport extends Abstrac
@@ -46,16 +45,11 @@ public abstract class WebSocketMessageBrokerConfigurationSupport extends Abstrac
@ -97,12 +97,10 @@ public class SubProtocolWebSocketHandler implements WebSocketHandler,
@@ -97,12 +97,10 @@ public class SubProtocolWebSocketHandler implements WebSocketHandler,
Assert.notNull(clientInboundChannel,"ClientInboundChannel must not be null");
@ -147,10 +145,6 @@ public class SubProtocolWebSocketHandler implements WebSocketHandler,
@@ -147,10 +145,6 @@ public class SubProtocolWebSocketHandler implements WebSocketHandler,
+" to protocol '"+protocol+"', it is already mapped to handler "+replaced);
@ -203,11 +197,6 @@ public class SubProtocolWebSocketHandler implements WebSocketHandler,
@@ -203,11 +197,6 @@ public class SubProtocolWebSocketHandler implements WebSocketHandler,