Questions tagged [stomp]

STOMP is a simple interoperable protocol designed for asynchronous message passing between clients via mediating servers.

STOMP is a very simple and easy to implement protocol, coming from the HTTP school of design; the server side may be hard to implement well, but it is very easy to write a STOMP client to get yourself connected to a STOMP server.

Versions of the STOMP specification can be found at:

1428 questions
20
votes
4 answers

Could not autowire. No beans of SimpMessagingTemplate type found

I am configuring Websockets in Spring basically by following the guide provided in the documentation. I am currently trying to send a message from the server to the client as explained in the section "Sending messages from anywhere" Following the…
Tk421
  • 6,196
  • 6
  • 38
  • 47
19
votes
1 answer

Connecting to Stomp over WebSockets implemented using Spring 4 from Java client

I received a Web application, implemented with Spring using STOMP over WebSockets Messaging, similar to what's described here (with RabbitMQ at the backend). It runs on Tomcat, and I can connect to the application using regular URLs (e.g.…
timbre timbre
  • 12,648
  • 10
  • 46
  • 77
19
votes
3 answers

Difference between /topic, /queue for SimpleMessageBroker in Spring Websocket + SockJS

Is there a clarification, what is the differences between /topic, /queue etc. for Spring Websocket + SockJS in case I am using "simple broker" ? E.g. here Sending message to specific user on Spring Websocket it is said: when your client subscribe…
onkami
  • 8,791
  • 17
  • 90
  • 176
19
votes
5 answers

WebSocket Stomp over SockJS - http custom headers

I'm using stomp.js over SockJS in my javascript client. I'm connecting to websocket using stompClient.connect({}, function (frame) { stomp over sockJS connection has 2 http requests: request to /info http upgrade request the client sends all…
user1116377
  • 629
  • 3
  • 15
  • 31
18
votes
1 answer

ActiveMQ: Openwire vs AMQP vs Stomp

ActiveMQ is a Message Broker that supports many different protocols such as Openwire, AMQP and Stomp. It is really confusing to know: what are the differences between using Openwire and AMQP as a base protocol to send and receive messages in the…
moha
  • 579
  • 2
  • 9
  • 27
18
votes
3 answers

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 & Spring 4 but without Stomp So without stomp server , I…
melihcoskun
  • 326
  • 1
  • 4
  • 19
18
votes
2 answers

How to tell when a Stomp server disconnected from the Stomp.JS client

I am sending a stomp message over a Sock.JS client. When I disconnect the server I would like a warning message to show up on the client. To do this I have implemented a server side heartbeat stompClient =…
Jackie
  • 21,969
  • 32
  • 147
  • 289
17
votes
2 answers

Spring websocket (WSS) with angular sockjs (HTTPS) over secure web socket server (tomcat)

I'm working on sending messages from the server side to angular client application using Spring web socket + stomp + SockJsClient at server side and SockJS at the angular side. My Socket server is a spring boot application and running on 8080…
John Martin
  • 173
  • 1
  • 5
17
votes
2 answers

Send Notification to specific user in spring boot websocket

I want to send notification to specific client. e.g username user @Configuration @EnableWebSocketMessageBroker public class WebSocketConfiguration extends AbstractWebSocketMessageBrokerConfigurer { @Override public void…
naila naseem
  • 577
  • 3
  • 12
  • 21
17
votes
1 answer

Spring Websocket with Stomp full featured broker and failover

I have those configuration for spring and a full feature stomp broker (ActiveMQ): @Configuration @EnableWebSocketMessageBroker public class WebsocketConfig extends AbstractWebSocketMessageBrokerConfigurer { private static Logger LOG =…
Raphael do Vale
  • 931
  • 2
  • 11
  • 28
17
votes
1 answer

Spring Security with WebSockets - Forbidden 403

I have implemented WebSocket in Spring. Everything worked fine, but recently I decided to implement Spring Security. My MessageBroker looks like : @Configuration @EnableWebSocketMessageBroker @Component("messageBroker") public class MessageBroker…
16
votes
3 answers

Spring STOMP over WebSockets not scheduling heartbeats

We have a Spring over WebSockets connection that we're passing a CONNECT frame: CONNECT\naccept-version:1.2\nheart-beat:10000,10000\n\n\u0000 Which the handler acknowledges, starts a new session, and than…
jordan.baucke
  • 4,308
  • 10
  • 54
  • 77
16
votes
1 answer

How to send ERROR message to STOMP clients with Spring WebSocket?

I am using Spring's STOMP over WebSocket implementation with a full-featured ActiveMQ broker. When users SUBSCRIBE to a topic, there is some permissions logic that they must pass through before being successfully subscribed. I am using a…
hartz89
  • 669
  • 1
  • 6
  • 18
16
votes
1 answer

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 user, which were created while he was offline, and…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
16
votes
2 answers

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 @MessageMapping. The documentation says that the…
JB Nizet
  • 678,734
  • 91
  • 1,224
  • 1,255
1
2
3
95 96