All Questions
22 questions
0
votes
1
answer
105
views
Make websocket (sockjs) work with spring4 running at GlassFish 3.1.2.2
I try to create websocket connection using sockjs on client and spring4 (with java config) on backend under GlassFish 3.1.2.2 but whatever I do it always fail with the following problem:
java.lang....
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, /...
3
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 ...
9
votes
2
answers
6k
views
How to broadcast a message using raw Spring 4 WebSockets without STOMP?
In this great answer https://stackoverflow.com/a/27161986/4358405 there is an example of how to use raw Spring4 WebSockets without STOMP subprotocol (and without SockJS potentially).
Now my question ...
0
votes
1
answer
307
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 & ...
2
votes
0
answers
964
views
Spring MVC and WebSockets
I try to add a WebSocket end point to my Spring 4 web app.
I follow this tutorial.
I created and Handler and an Interceptor and I registered them adding this configuration in the file mvc-dispatcher-...
41
votes
1
answer
26k
views
WebSocket with Sockjs & Spring 4 but without Stomp
Is there a way to use WebSockets with SockJS client and Spring 4 server but not using STOMP?
Based on this tutorial from Spring's website, I know how to set up a WebSocket based application using ...
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 ...
2
votes
2
answers
2k
views
Spring webSocket - Reject topic subscription based on user rights with IE8 - determineUser() never called
I would like to reject subscription according to user permissions. I found the following solution and it helped for browsers that support websocket:
https://github.com/rstoyanchev/spring-websocket-...
7
votes
2
answers
2k
views
Spring 4 WebSocket + sockJS:. Getting "No matching method found" in trace and @MessageMapping handler not invoked
Controller code:
@Controller
public class SockController {
@MessageMapping(value="/chat")
public void chatReveived(Message message, Principal principal) {
...
LOGGER.debug("...
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 ...
2
votes
2
answers
4k
views
Spring 4 DispatcherServlet mapping with websockets
I am working to add Spring 4's new websocket abilities to an existing enterprise Spring web application.
Most of the examples out there for this are based on using Spring's annotation configuration ...
2
votes
1
answer
3k
views
Spring 4 - websocket messaging stomp handler
I was trying the tutorial provided by spring - messaging-stomp-websocket and it is working fine
Now I want to extend the this and add my WebSocket handler which intercept the channel.
public class ...
0
votes
1
answer
344
views
Are Spring4 websockets supported in ie8?
According to this document they are : http://caniuse.com/websockets
But this document http://msdn.microsoft.com/en-us/library/ie/hh673567(v=vs.85).aspx seems to suggest that the earliest version is ...
1
vote
1
answer
3k
views
Spring 4 websockets causing tons of exceptions
Ever since we started using websockets in Spring 4, our logs are littered with this exception:
3 ERROR MessageBrokerSockJS-1 handler.XhrStreamingTransportHandler$XhrStreamingSockJsSession:276 - ...
6
votes
2
answers
7k
views
dynamic message-mapping for websockets in Spring 4
I want to develop a small chat with springs new websocket/stomp support.
I guess i cannot use something like this:
@MessageMapping("/connect/{roomId}")
@SendTo("/topic/newMessage")
public String ...
8
votes
1
answer
11k
views
Spring 4 WebSocket Remote Broker configuration
I managed to create simple Websocket application with Spring 4 and Stomp. See my last question here
Then I tried to use remote message broker(ActiveMQ). I just started the broker and changed
...
1
vote
2
answers
3k
views
Custom object mapper for Websockets in Spring 4
I'm using Spring 4 and was following the Rossen Stoyanchev's blog post about using websockets in Spring. I was able to get everything working but I'm not sure what the best way to use a custom object ...
0
votes
2
answers
2k
views
Adding Spring 4 websockets to an existing spring project
My intent is to plug in the spring 4 websocket classes for my existing project.
Here is the spring websocket project link:
https://github.com/rstoyanchev/spring-websocket-test
problem is my project ...