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
2
votes
2 answers

How to programatically start/stop message consumption when using @MessageMapping annotation?

Am using the @MessageMapping(queue_name) annotation along with the spring-aws-cloud library to consume messages from two SQS queues. I see that the SimpleMessageListenerContainer is used as the listener container for both message queues. There is a…
2
votes
1 answer

spring-messaging xml config with stomp and spring-sessions

I'm trying to set up WebSockets with spring-messaging using stomp, and using redis-backed sessions with spring-session. Our application context is wired via xml, and spring-session is working with the non-websocket portion of the application. The…
Mark
  • 45
  • 1
  • 4
2
votes
1 answer

Integrate spring-reactor into existing Spring Framework 4 STOMP Over WebSocket application

My application uses the Spring Framework 4 included spring-messaging module (with key abstractions from the Spring Integration project such as Message, MessageChannel,MessageHandler and others that can serve as a foundation for such a messaging…
justify
  • 1,036
  • 2
  • 14
  • 26
2
votes
0 answers

Using @SubscribeMapping annotated method for RPC-like behavior when return value is deferred

I really like @SubscribeMapping approach to implement RPC-like semantic with STOMP-over-Websocket. Unfortunately its "magic" requires that annotated method returns a value. But what if return value is not readily available? I want to avoid blocking…
ikolomiets
  • 131
  • 5
2
votes
1 answer

Messaging with Spring and external Message Brokers

My use case considers three actors: A Message Producer (for instance, a Remote Backend); A Message Broker (for instance, RabbitMQ); A Message Consumer (a Spring-based web application on is own AS). The communication process is as follows: The…
vdenotaris
  • 13,297
  • 26
  • 81
  • 132
2
votes
1 answer

Spring messaging websockets - how to call setMessageCodec

I am trying to use Spring websockets with Genson instead of Jackson. When I try and connect from a client I get the following: java.lang.IllegalStateException: A SockJsMessageCodec is required but not available: Add Jackson 2 to the classpath, or…
Cheetah
  • 13,785
  • 31
  • 106
  • 190
1
vote
0 answers

How to integrate stomp/websockets using spring boot messaging with Jetty 10?

Some backstory: I am working on a spring boot application which uses the spring-boot-starter-websocket library to update a frontend client with messages using STOMP. The setup is as per spring docs - using…
1
vote
0 answers

Kafka producer takes longer time to return acknowledgement

The application that I work for has some moderate amounts of 15k-17k req/sec events to be published to event-hub in Azure, The event configuration looks as below: metadata.max.age.ms: 180000 connections.max.idle.ms: 180000 max.request.size:…
1
vote
1 answer

Spring and Google Cloud PubSub - subscribing to events

Following documentation, there are multiple ways to integrate Google Cloud PubSub events with Spring application: Spring Cloud GCP has several modules for sending messages to Pub/Sub topics and receiving messages from Pub/Sub subscriptions using…
1
vote
2 answers

Spring AOP pointcut execution not working

I'm working on a Spring Boot project that uses Spring Cloud (io.awspring.cloud:spring-cloud-aws-dependencies:2.4.2) to produce and consume AWS SQS messages. I have several message producers and several message consumers, and all is working fine from…
Nathan Russell
  • 3,428
  • 5
  • 30
  • 51
1
vote
0 answers

Spring Boot Stomp With AWS ActiveMQ for thousands of Concurrent Connections

I am trying to build a Spring STOMP based application for exposing API's, we are using AWS ActiveMQ(AmazonMQ) as external broker for relaying STOMP messages. We are observing an issue when we are testing our application under load with JMeter, a lot…
shred22
  • 83
  • 1
  • 10
1
vote
1 answer

Spring Integration - Stop specific messages sending until other messages have been successfully sent

I'm quite new to Spring Integration and am having some difficulties with the following issue: I have several files stored in my DB. I have functionality that allows users to specify one or more of these files to export to a particular SFTP…
1
vote
1 answer

Error in startup application when using @ServiceActivator in Spring cloud Stream

I put @ServiceActivator to log all messages that gave error to kafka: @ServiceActivator(inputChannel = "errorChannel") public void handleErrors(final ErrorMessage in) { log.error("encountered exception" + em.toString()); } and I'm also setting…
1
vote
1 answer

Spring Batch Integration throwns org.springframework.messaging.MessageHandlingException when receive ChunkRequest event

I am implementing the Spring Batch-Integration Remote Chunking. After deserialization of the received ChunkRequest, I got the following error: 2022-05-08 18:19:12.910 ERROR 2184 --- [container-0-C-1] o.s.integration.handler.LoggingHandler :…
1
vote
1 answer

Spring STOMP configure mutual authentication wss/ssl

Is possible configure mutual authentication wss in Stomp client/server in spring boot with jetty server? I have tried this with no success. in client code i try to set SSLContext with user properties in client. The other example online use only…
Furetto
  • 329
  • 3
  • 9