Skip to main content

Questions tagged [spring-websocket]

A Spring Framework module that support WebSocket-style messaging in web applications (native websocket and with SockJS support), including use of STOMP as an application level WebSocket sub-protocol.

spring-websocket
2 votes
3 answers
7k views

Spring websocket example - error - Are you running in a Servlet container that supports J SR-356?

I am trying to run the Spring 4 example given @ https://spring.io/guides/gs/messaging-stomp-websocket. When I try to connect to socket, it throws me following exception. As per the example you need ...
Amit's user avatar
  • 1,662
7 votes
1 answer
8k views

Custom Stomp Headers using Spring websockets

I have a basic spring websocket application which currently sends basic data to subscribers. Currently the system uses the SimpMessageSendingOperations class as the message handler. If I call ...
Jaimie Whiteside's user avatar
1 vote
2 answers
4k views

How to specify content type produced by a handler in Spring Messaging?

I'm experimenting with Spring 4 WebSocket STOMP application. Is there a way to explicitly specify content type of the returned message produced by a handler? By default the handler below produces ...
Anton Moiseev's user avatar
3 votes
1 answer
6k views

Declare and use RabbitMQ with Spring 4 Websockets

in our current app, we are using Spring AMQP this way: <rabbit:connection-factory id="cachingConnectionFactory" username="${rabbitmq.connection.username}" ...
antacerod's user avatar
  • 1,390
4 votes
2 answers
6k views

How to reply to unauthenticated user in Spring 4 STOMP over WebSocket configuration?

I'm experimenting with Spring 4 WebSocket STOMP application. Is there a way to reply to a single unauthenticated user on condition that each user has unique session ID? Right now I can only either ...
Anton Moiseev's user avatar
1 vote
1 answer
1k views

Fail to connect to Rabbitmq using Spring 4.0 webstocket stomp api

I tried to make STOMP connection to RabbitMQ using Spring 4.0 WebSocketMessageBrokerConfigurer class, but failed ? Snap of code is here. @Configuration @EnableWebSocketMessageBroker public class ...
Rafiq's user avatar
  • 51
16 votes
2 answers
18k views

How to get/set the principal and session attributes from Spring 4 stomp websocket methods

I'm doing experiments with Spring 4 websockets and stomp, and I have a hard time figuring out how to get/set the current user and other session attributes in a message handling method annotated with @...
JB Nizet's user avatar
  • 688k

15 30 50 per page
1
95 96 97 98
99