mthizo247 / spring-cloud-netflix-zuul-websocket

Zuul reverse proxy web socket support
Apache License 2.0
139 stars 72 forks source link

fix SimpMessagingTemplate injection in ZuulWebSocketConfiguration.java #13

Open f0rb opened 6 years ago

f0rb commented 6 years ago

ZuulWebSocketConfiguration needs messagingTemplate to be injected @Autowired SimpMessagingTemplate messagingTemplate; which will trigger the invokation of org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration#brokerMessagingTemplate() and then brokerChannel() and then getBrokerRegistry() and then org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration#configureMessageBroker(MessageBrokerRegistry) and ZuulWebSocketConfiguration has not been initialized yet at that time and the configurers variable has not been injected, and this results ZuulWebSocketConfiguration#configureMessageBroker(MessageBrokerRegistry) never been called.