Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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....
Rómeó Nagy's user avatar
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 ...
pidabrow's user avatar
  • 976
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 ...
pidabrow's user avatar
  • 976
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, /...
Kristoff's user avatar
  • 326
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 ...
An Illusion's user avatar
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 ...
TMG's user avatar
  • 2,740
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, ...
Continuity8's user avatar
  • 2,591
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 & ...
melihcoskun's user avatar
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-...
Panciz's user avatar
  • 2,234
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 ...
BlueChips23's user avatar
  • 1,941
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 ...
Benjamin M's user avatar
  • 24.5k
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-...
user1116377's user avatar
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("...
user3908406's user avatar
  • 1,786
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 ...
James's user avatar
  • 1,780
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 ...
Chris's user avatar
  • 51
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 ...
Subhrajyoti Majumder's user avatar
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 ...
blue-sky's user avatar
  • 53.7k
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 - ...
pdeva's user avatar
  • 45.3k
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 ...
kentobi's user avatar
  • 491
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 ...
Evgeni Dimitrov's user avatar
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 ...
Josh's user avatar
  • 2,942
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 ...
Urbanleg's user avatar
  • 6,532