Questions tagged [spring-messaging]

A Spring Framework module providing APIs and base classes for messaging.

Spring Messaging is a module of the Spring Framework () providing APIs and fundamental classes for other Spring messaging projects such as and .

258 questions
3
votes
0 answers

How to guarantee that subscription was happened in stomp client?

I have the following class: @Autowired private WebSocketStompClient client; private volatile StompSession stompSession; public ListenableFuture connect(String token) { ..... //connecting return…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
3
votes
1 answer

How configure the Spring Sockjs Java Client message converters

I have one SockJS Java client that use STOMP. Is base on this https://github.com/rstoyanchev/spring-websocket-portfolio/blob/master/src/test/java/org/springframework/samples/portfolio/web/load/StompWebSocketLoadTestClient.java. My code: package…
Sergio
  • 441
  • 9
  • 22
3
votes
1 answer

How to subscribe an internal Spring Boot/Simple Broker topic queue?

I need to subscribe the internal spring boot topic /user/exchange/amq.direct/chat.message to creat a bot that will subscribe a topic queue and answer the messages. @Configuration @EnableWebSocketMessageBroker public class WebSocketConfiguration…
Lucas Pires
  • 1,281
  • 14
  • 21
3
votes
1 answer

how to customize spring-messaging websockets user subscriptions?

I'm using spring-messaging websockets in a corporate environment. The spring-messaging component runs in the DMZ. It is connected to an ActiveMQ broker network through a firewall into the internal network. Connections are authenticated in the DMZ…
Andy Brown
  • 11,766
  • 2
  • 42
  • 61
3
votes
2 answers

Add STOMP header without recreating Message on ChannelInterceptorAdapter

I need to add header to a STOMP message currently it is working as below but i am recreating the message , is it possible to just add native header without having to recreate the message for performance . public class MyChannelInterceptor extends…
Shahbour
  • 1,323
  • 1
  • 16
  • 42
3
votes
0 answers

Spring Stomp message send and receiptId

What is the right way to configure Spring StompBrokerRelay, to be able to create a simple java client which just publishes a messages, which are acknowledge by the server. Spring client StompSession is returning Receiptable when sending message from…
3
votes
2 answers

How do I send a message in an Spring ApplicationListener (SessionConnectedEvent)

I'm using Stomp over SockJS with Spring messaging. I'm trying to send a message to all logged in users when a new user is connected. So first off here's my listener: @Component public class SessionConnectedListener implements…
Philippe
  • 1,356
  • 14
  • 20
3
votes
4 answers

Spring Websockets 4.1.6 with Tomcat 7.0.54 and Apache 2.4

I'm having some troubles running a simple application using Spring WebSockets 4.1.6, Tomcat 7.0.54 and Apache 2.4.16 as Web Server. I have read a lot of posts in internet, and I don't know what's happening. The server starts without problems. I have…
3
votes
0 answers

Spring Framework 4 Websocket STOMP load testing sudden SimpleBrokerMessageHandler - Processing DISCONNECT on all websocket sessions

This must have to do with load but there are no warnings or errors SimpleBrokerMessageHandler - Processing DISCONNECT starts to happen above a certain number of simultaneous connections. I've tried with trace logging and I still can't see why the…
justify
  • 1,036
  • 2
  • 14
  • 26
3
votes
1 answer

Subscribing to spring-websocket messages internally

I am using spring-websocket to push messages to browser clients. My setup is almost identical to the one in the portfolio example and I send out messages by using MessageSendingOperations: MessageSendingOperations messagingTemplate =…
Rasmus Faber
  • 48,631
  • 24
  • 141
  • 189
3
votes
1 answer

Declare and use RabbitMQ with Spring 4 Websockets

in our current app, we are using Spring AMQP this way:
Antonio Acevedo
  • 1,480
  • 3
  • 21
  • 39
2
votes
1 answer

How to implement thread efficient retries on async JmsOutboundGateway

In my case i use JmsOutboundGateway for mq connection - inputChannel is ExecutorChannel. Currently ServiceActivator don't have any output channel. Gateway interface method returns CompletableFuture object. @MessagingGateway public interface…
Luke
  • 23
  • 3
2
votes
1 answer

Producer callback in Spring Cloud Stream using StreamBridge

I'm wondering a way to perform a callback using StreamBridge, I want to do something similar to KafkaTemplate.send that returns a ListenableFuture. Is it possible with spring cloud stream to publish some events using kafka binder and use a callback…
2
votes
2 answers

How can I pass MessageGroupId for FIFO SNS

I've tried the following code: private final NotificationMessagingTemplate notificationMessagingTemplate; public void send(final T payload, final Object groupId) { final ImmutableMap headers =…
2
votes
1 answer

ZeroMQ with Spring (spring-integration-zeromq)

I'm using spring-integration-zeromq and I'm trying to set up with authentication settings. @Bean ZeroMqChannel zeroMqPubSubChannel(ZContext context, ObjectMapper objectMapper) { ZeroMqChannel channel = new ZeroMqChannel(context,…