Can I send a message to a message broker using the SimpMessagingTemplate#convertAndSendToUser or SimpMessagingTemplate#convertAndSend without setting up website broker messages using @EnableWebSocketMessageBroker ?
What I'm trying to do is use one web server for messaging for two instances of the application server (one spring 4 and one spring 3). I created one web server with spring 4 enabled, spring loading and a websocket message firewall.
Now I want the two application servers to send messages to rabbitmq so that they send them to clients that are subscribed to it.
The first problem I encountered is the lack of configuration of brokerage messages for websites, SimpMessagingTemplate will not be automatically transmitted in the context of the application. I could not get him to inject without creating a bulletin board with websites.
Please help me find out if this is possible.
By the way, I have the previous question without an answer.
spring spring-mvc spring-websocket spring-4
Susitha ravinda senarath
source share