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
1
vote
1 answer

Fail to connect to Rabbitmq using Spring 4.0 webstocket stomp api

I tried to make STOMP connection to RabbitMQ using Spring 4.0 WebSocketMessageBrokerConfigurer class, but failed ? Snap of code is here. @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements…
Rafiq
  • 51
  • 7
0
votes
1 answer

Track specific usages of Spring libraries in my app

Recently, the application we are supporting had just undergone Software Composition Analysis (SCA) scanning and there were some Spring libraries what were found to have vulnerabilities. The problem is, there were vulnerabilities found in certain…
0
votes
0 answers

JMS: How do I connect my localhost glassfish server to the project I am working on?

I am new to JMS and APIs. I started working on a messaging platform to try and connect the Glassfish local server to start sending and receiving messages through the server. However, I don't understand how to set up the Initial Context to recognize…
0
votes
1 answer

SqsListener Header take message body instead message attribute

I have code below to receive message and an attribute from the AWS SQS. The message body is as expected. However, the attribute "sourceId" is always taking the message body json as value. @SqsListener(value = "my_queue", deletionPolicy =…
Laodao
  • 1,547
  • 3
  • 17
  • 39
0
votes
1 answer

Adding custom headers to STOMP CONNECTED frame with Spring

Is it possible to add a custom header to the STOMP CONNECTED frame in Spring? From what I have found in StompSubProtocolHandler, a CONNECT_ACK SiMP message gets converted to a CONNECTED STOMP message without retaining any header. So if a…
Xavier Dury
  • 1,530
  • 1
  • 16
  • 23
0
votes
0 answers

InvalidAddress error when trying to connect to AWS SQS

I'm trying to connect to AWS SQS from a spring-boot project and the application fails to start with the below error Invocation of init method failed; nested exception is com.amazonaws.services.sqs.model.AmazonSQSException: The address…
0
votes
1 answer
0
votes
0 answers

Test code using ActiveMQ BrokerService breaks after upgrading Spring Boot from 2.7.x to 3.0.3

My project currently has test code that connects to an ActiveMQ broker configured as follows: import lombok.extern.slf4j.Slf4j; import org.apache.activemq.broker.BrokerService; @Slf4j public class MqTestConfiguration { public static final String…
Keith Bennett
  • 733
  • 11
  • 25
0
votes
0 answers

How to remove all default headers that springboot messaging post to an AWS SNS topic

Springboot application is posting 3 default headers to an AWS SNS Topic. When a AWS SQS is triggered by this topic, the message received is: { "Messages": [ { "MessageId": "5ee14960-8a12-4c42-9f36-4950fbbaeccb", …
0
votes
1 answer

Kafka throwing error after updating Avro spring boot

So i updated my avro with a default int attribute { "name": "minimum", "type": [ "null", "int" ], "default": null } On the schema registry i have it set to forward compatibility. My consumer exists in the same project as the…
user1555190
  • 2,803
  • 8
  • 47
  • 80
0
votes
1 answer

Spring Boot: Architecting Application with Both Web and non-Web CLI processes as a monolith

I am looking for the best way to implement a single-module Spring Boot project, which can run as multiple processes (1) serving REST API or (2) running one of many CLI processes. Details: We have three components in a simplified version of our…
Nawab
  • 1
0
votes
0 answers

how can the server detect internet failure at client side using stomp

I'm using Spring Messaging v 5.3.21 for WebSocket. I have following interceptor to validate each request. @Override public Message preSend(Message message, MessageChannel channel) { try { StompHeaderAccessor headerAccessor =…
0
votes
1 answer

What happens to undelivered messages in Spring Simple Message Broker

I am using spring-messaging and spring-websocket modules to transmit messages between client and server over websockets. At the moment, I am using the "Simple Message Broker" that comes in-built along with the above spring modules. I am sending some…
dinika saxena
  • 101
  • 1
  • 8
0
votes
1 answer

Set Delivery Delay per message for IBM MQ using Spring boot

I have a problem when I want to set delivery delay for each message (IBM MQ and Spring boot). Normal way is to use jmsTemplate.deliveryDelay = 324234 but the problem is we are changing the property of the jmsTemplate which is a global object…
0
votes
1 answer

How to fix 'java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to class' error?

I am working on a Spring project in Java that recieves messages from a Google Pub/Sub subscription. However, my code fails to parse these incoming messages. The messages are given in a JSON format. A sample message is as follows: { "crudType":…
FOR_SCIENCE
  • 386
  • 3
  • 9