Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix SimpMessagingTemplate injection in ZuulWebSocketConfiguration.java #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f0rb
Copy link

@f0rb f0rb commented Mar 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant