All Questions
Tagged with spring-websocket spring-4
16
questions
4
votes
2
answers
7k
views
Spring WebSockets - how to apply @DestinationVariable only to @SendTo annotation?
I'm trying to apply a destination variable to a method in my controller that handles incoming messages from WebSocket. Here's what I want to achieve:
@Controller
public class ...
0
votes
1
answer
1k
views
Spring WebSocket - notifying subscribers is not working
I'm trying to get Spring Websockets (Spring 4) to work in the project that I've been working on. So far I have opening Websocket, adding subscribers and sending messages.
Since yesterday I've been ...
5
votes
1
answer
3k
views
Using Spring WebSocket's SimpMessagingTemplate with multi endpoint configuration
I'm using Spring 4.3.5 and WebSocket with SockJS, STOMP and SimpleBrokerMessageHandler.
In my application I have three separate WebSocket endpoints running on a different address: /endPointA, /...
2
votes
1
answer
5k
views
Getting a Failed to start bean 'subProtocolWebSocketHandler' exception while trying to implement websockets
I am going through the websockets with Spring 4 tutorial here. I have it working where the server responds when client calls.
However, my use case is having the server push the messages without ...
8
votes
1
answer
1k
views
Use SimpMessagingTemplate without creating a web socket message broker Spring 4
Can I send a message to a message broker using SimpMessagingTemplate#convertAndSendToUser or SimpMessagingTemplate#convertAndSend methods without settings up a websocket message broker using @...
0
votes
1
answer
300
views
Basic Spring 4 Websocket application
I'm attempting to build a basic Hello World Spring websockets app however I can't seem to hit the WebSocket endpoint, what am I missing?
I have added the TextWebSocketHandler, WebSocketConfigurer, ...
18
votes
3
answers
22k
views
Spring 4 websocket without STOMP,socketjs
I am trying to test websocket without using socketjs library and also i don't want to add any stomp connection.
I am following the example from stackoverflow question:
WebSocket with Sockjs & ...
10
votes
1
answer
11k
views
Stomp over websocket : The send buffer size exceeded the allowed limit
At client side I am using Stomp for websocket connection and server side I am using Spring 4
It client side I did configuration as
var socket = new SockJS(urlBase + "/" + contextroot+'/hello');
...
16
votes
1
answer
10k
views
Spring Stomp @SubscribeMapping("/user/...") with User Destination doesn't work
I need to react on a user destination subscription.
Example:
A user subscribes to /user/messages, because he wants to receive all incoming messages. Now I'd like to look up any messages for this ...
0
votes
1
answer
606
views
no mapping found for /info Spring 4 websockets
In spring controllers if I use @MessageMapping it is working, but if I changed to @Requestmapping(value=="",method=RequestMethod.POST) and try to use SimpMessagingTemplate to send the messages to ...
2
votes
0
answers
385
views
Spring 4 project not working after adding websocket handling xml
I have a spring4 webapp which works perfectly fine , but after adding spring websocktes configuration xml my app refused to map any http get request.
Error message : Dispatcher servlet doesnt find any ...
2
votes
1
answer
773
views
Spring 4 STOMP not sending queue-suffix in header on connect
I wrote a small project that uses Spring MVC 4 with Websockets and RabbitMQ as the broker.
I am trying to send back to a single user (convertAndSendToUser) but I can't seem to have it working. Here is ...
0
votes
1
answer
1k
views
How to send a STOMP message with Spring4 when controller is mapped
I have the following code...
@Controller
@RequestMapping("/stomp/**")
public class StompController {
@MessageMapping("/hello")
@SendTo("/topic/greet")
public Greeting greet(HelloMessage ...
6
votes
1
answer
5k
views
Push message from Java with Spring 4 WebSocket
I'd like to push messages from Java to WebSocket clients. I've successfully made a js client send to the server and receive a message back on 2 js clients, so the client side code works fine.
My ...
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}"
...