'Constructing SimpMessagingTemplate instance without autowired
I am trying to send asynchronous messages from a server to a client after the client is connected, independent of user action. All the examples I have found so far have the SimpMessagingTemplate autowired in the controller. Is there a file that contains information about how this object gets autowired by default? My goal is to use this object in a class that is not managed by spring. I would prefer to have a straight forward way to construct the object, instead of trying to recreate this deep object possibly with circular references through debug mode.
Here is the relevant part of the servlet xml:
<websocket:message-broker application-destination-prefix="/socketprefix">
<websocket:stomp-endpoint path="/stompendpoint">
<websocket:sockjs/>
</websocket:stomp-endpoint>
<websocket:simple-broker prefix="/topics/,/queues/"/>
</websocket:message-broker>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
