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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -