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
0
votes
1 answer

Spring-message dependency connection problem

I recently connected the Spring messaging module to my libgdx project for graceful use of sockets by following this tutorial: https://nexocode.com/blog/posts/spring-dependencies-in-gradle/ Then the task android: mergeDebugJavaResource swears that I…
Dannik
  • 11
  • 2
0
votes
1 answer

Separate ErrorHandlers for separate JmsListeners

Here is answered how to set an ErrorHandler for a whole JmsListenerContainerFactory. But I need each JmsListener (DefaultMessageListenerContainer) to have its own ErrorHandler. Just having a try-catch inside my listener would not fit, because it…
0
votes
1 answer

Why JmsListeners cannot share a common Jms connection?

I create a message handler this way: @JmsListeners( JmsListener(destination = "queue1"), JmsListener(destination = "queue2"), JmsListener(destination = "queue3"), JmsListener(destination = "queue4") ) fun handleMessage(message: String) { …
0
votes
0 answers

How to send websocket message to a specific subscription in a session?

I have implemented a WebSocket server using Spring WebSocket and STOMP. There are multiple subscriptions over a single session and I want to send message to a specific subscription only. Steps to reproduce: Client connects to server by calling…
kulsin
  • 398
  • 4
  • 18
0
votes
1 answer

Direct user message doesn't work with Spring Websocket

I am trying send direct messages to user. Application hasn't done authentication so there is temporary solution for creating websocket session users as you can see in added code. @Configuration @EnableWebSocketMessageBroker public class…
0
votes
1 answer

Occasional NullPointerException when publishing STOMP message using SpringFramework

I am running into some occasional NPE when publishing STOMP messages using Spring (5.2.0). Unfortunately I cannot precisely provide the steps to reproduce but I was hoping to get some insight into how this could happen. I looked into the source and…
0
votes
1 answer

Testing spring-cloud-stream with their test-binder always throws MessageDeliveryException: Dispatcher has no subscribers for channel

I'm trying to write tests for my message producers. But whenever i try to send a message using the injected Bindings i get following error Caused by: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers,…
Laures
  • 5,389
  • 11
  • 50
  • 76
0
votes
1 answer

spring-kafka serialize/deserialize org.springframework.messaging.Message objects using Avro

I want to send and receive spring message objects by using Avro serdes on them. I am using spring.framework.messaging.message because I want to pass around headers and modify them. My message type is Transaction. This is my producer…
Shades88
  • 7,934
  • 22
  • 88
  • 130
0
votes
1 answer

How spring-stomp handles headers with ":"

I put a date-time (for example: 2020-03-20 13:56:57) into Spring STOMP headers, like this: map.put("messageTime","2020-03-20 13:56:57"); simpMessagingTemplate.convertAndSend("","",map) The STOMP client is like this: stomp.subscribe("",(res)=>{ …
Mushif
  • 1
  • 1
0
votes
0 answers

MessagingException on JavaMailSenderImpl

I'am trying to provide email-sending by using org.springframework.mail.MailSender. I configurated MailSender and MessageSource-beans in the following class: @Configuration public class MailProvider { @Bean(name = "mailSender") public MailSender…
Jelly
  • 972
  • 1
  • 17
  • 40
0
votes
1 answer

Type Id property error is get when sending text

I use spring boot 2.2 application who receive mq message via jms. Data is json In my code I have this config @Bean public MessageConverter jacksonJmsMessageConverter() { MappingJackson2MessageConverter converter = new…
robert trudel
  • 5,283
  • 17
  • 72
  • 124
0
votes
1 answer

Null value in KStream.map causing IllegalArgumentException: Payload must not be null

Problem Description: I'm creating a spring cloud Kafka stream application. I have one input topic and one output topic and I'm trying to apply a KStream Key-Value transform operation for the input topic using KStream.map function The problem if I…
0
votes
1 answer

Spring Integration: Manual channel handling

What I want: Build a configurable library that uses another library that has an internal routing and a subscribe method like: clientInstance.subscribe(endpoint, (endpoint, message) -> ) , e.g. Paho MQTT library later in my code I want to…
PeMa
  • 1,559
  • 18
  • 44
0
votes
1 answer

How to send plain text JmsMessage with empty header

I want to send a message to an activeMQ and receive it via MQTT.js in the frontend. jmsTemplate.convertAndSend("topic", "Hello World!"); I am getting the message, but with a header, that I can not decode. S�A S�)�x-opt-jms-destQ�x-opt-jms-msg-typeQ…
Chris
  • 5,109
  • 3
  • 19
  • 40
0
votes
1 answer

bind destinations dynamically for producers and consumers (Spring)

I'm trying to send and receive messages to channels/topics whose destination names are in a database, so they can be added/modified/deleted at runtime, but I'm surprised I have found little on the web. I'm using Spring Cloud Streams to allow to…