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>
That template is usually autowired, because one is created for you that matches your configuration. It is, by design, coupled with other parts of your Simp infrastructure (and it has to be!), because to build one you need:
Maybe could you expand on why this class can't be Spring managed?