spring mvc - Which context should websocket config go into? -


as people, have root , servlet contexts. need enable websocket stomp. need send messages service layer. how configure?

if put websocket:message-broker servlet config, simpmessagingtemplate not autowired in service layer. if put root, doesn't work @ all, isn't registered http handler (even though logs does). if put dispatcher context, there

java.lang.illegalstateexception: no webapplicationcontext found: no contextloaderlistener registered?    org.springframework.web.filter.delegatingfilterproxy.dofilter(delegatingfilterproxy.java:252 

for going work around calling simpmessaging controller, , not service, i'd rather better solution.


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -