Menu
  • HOME
  • TAGS

Spring MVC can't access @Autowired fields from @MessageMapping annotated methods

spring,spring-mvc,websocket,spring-websocket,spring-messaging

I found my error and it had nothing to do with Spring Messaging or configuration, it was a pretty dumb error actually so i apologize: My @MessageMapping annotated method was private and it should have been public....

spring-messaging xml config with stomp and spring-sessions

spring-websocket,spring-messaging,spring-session

The Spring Session WebSocket contains the config just only for the Java & Annotation variant. And according to the Spring Session Docs the AbstractSessionWebSocketMessageBrokerConfigurer does the stuff for seamless integration between Spring Session and Spring WebSockets. However there we can see some paragraph, what it does: To hook in the...

Spring security/Spring session/Web sockets

spring-security,spring-websocket,spring-messaging,spring-session

Coworker of the accursed here. Our configuration is largely correct but our issue stemmed from a bit of a misunderstanding around the security context and its availability from the websocket side of things. Comments gathered from various sub-issues of https://jira.spring.io/browse/SEC-2179 led us to grabbing the logged in user principal from...

Spring Integration jms message driven channel adapter fails

spring-integration,spring-jms,tibco-ems,spring-messaging

This is generally caused by some component in the downstream flow hanging the container thread uninterruptibly (e.g. reading from a socket with no timeout, where no data arrives). To diagnose, take a thread dump (e.g. jstack ) when the hang occurs, to find out what the listener container threads are...

MessageListenerContainer with MessageHandler?

spring,spring-integration,spring-jms,spring-messaging

MessageChannel channel = new DirectChannel(); DefaultMessageListenerContainer container = ... JmsMessageDrivenEndpoint inbound = new JmsMessageDrivenEndpoint(container); inbound.setOutputChannel(channel); handler.subscribe(channel); inbound.afterPropertiesSet(); inbound.start(); However, why use Spring Integration at all here; you can wire a MessageListener into the message listener container directly....

Integrate spring-reactor into existing Spring Framework 4 STOMP Over WebSocket application

java,spring,spring-mvc,spring-websocket,spring-messaging

Actually the RingBufferAsyncTaskExecutor isn't ThreadPoolTaskExecutor, so you can't use it that way. You can simply override clientInbound(Outbound)Channel beans from your AbstractWebSocketMessageBrokerConfigurer impl and just use @EnableWebSocketMessageBroker: @Configuration @EnableWebSocketMessageBroker @EnableReactor public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @autowired Environment reactorEnv; @Override public void registerStompEndpoints(StompEndpointRegistry registry) {...