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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -