Questions tagged [spring-amqp]

Spring components for AMQP-based messaging.

The Spring AMQP project applies core Spring concepts to the development of AMQP-based messaging solutions. It provides a "template" as a high-level abstraction for sending and receiving messages. It also provides support for Message-driven POJOs. Its libraries facilitate management of AMQP resources while promoting the use of dependency injection and declarative configuration. In all of these cases, you will see similarities to the JMS support in the Spring Framework.

The spring-amqp sub-project is a general abstraction, with spring-rabbit being the implementation for RabbitMQ.

Resources

See Also

1608 questions
0
votes
2 answers

confirm-ack-channel is not getting invoked

Below is my config. In case of successful posting to queue the flow is not passing to confirm-ack-channel. Can anyone suggest where am going wrong?
0
votes
1 answer

what is the use of confirm-nack-channel and under what scenario the messages will be redirected to confirm-nack-channel

below is my outbound adapter and I want to know the use of nack-channel over here
0
votes
1 answer

Reusing annotations by creating meta annotations

I am just wondering whether we can create a meta-annotation and reuse it everywhere. For example, I have an annotation like so: @QueueBinding(value = @Queue, exchange = @Exchange(value = "MY_FANOUT_EXCHANGE", type = ExchangeTypes.FANOUT)) I need to…
falcon
  • 1,332
  • 20
  • 39
0
votes
1 answer

How to use a custom org.springframework.amqp.support.converter.MessageConverter with RabbitListener annotation?

I'm using Spring 4.2 and spring-amqp 1.5.5 and I've implemented my own org.springframework.amqp.support.converter.MessageConverter. This message converter is supposed to map between a org.springframework.amqp.core.Message and a Java object by…
Johan
  • 37,479
  • 32
  • 149
  • 237
0
votes
1 answer

Add default method before calling onMessage if MessageListener of Spring Amqp

I need to add some default functionality which will pick on some value from Message header in Spring Amqp before calling onMessage functionaity of implementing class . Eg class TestListener implements MessageListerner { public void…
Akshat
  • 575
  • 2
  • 12
  • 28
0
votes
1 answer

How to delegate runnable code from listener?

I am new to java's executor package. I want to delegate the responsibility of creating thread to another task(class) from spring rabbitmq(amqp). Currently I am creating inner level runnable class inside asynchronous MesageListener's onMessage()…
0
votes
1 answer

Spring AMQP synchronous reply and multithreading

I have a project where I send AMQP messages to a RabbitMQ Server. This messages are synchronous messages (I use sendAndReceive method). So, I have a SimpleMessageListenerContainer configured with the RabbitTemplate as MessageListener, and the…
jandres
  • 439
  • 1
  • 7
  • 21
0
votes
1 answer

Autowire and reuse "Spring-defined" properties

I have a simple question but I can't find anything about it in the documentation nor any example. I have a Spring Boot project which uses RabbitMQ and the Spring boot AMQP module. I'm using a specific exchange, and the Spring…
Lebowski
  • 588
  • 7
  • 21
0
votes
1 answer

Spring AMQP: How to dynamically adjust the concurrentConsumers?

The Spring AMQP doc says "Since version 1.3.0, you can now dynamically adjust the concurrentConsumers property." How do you do that? Thru environment variable or what? Elaborate? Thanks.
Glide
  • 20,235
  • 26
  • 86
  • 135
0
votes
1 answer

how to check performance improvement by ConcurrentConsumers in spring-amqp

I am pretty new to Spring AMQP module. I was successful to create simple project which produces and consumes messages. What I don't understand is following: If there is only one listener and more than one concurrent consumers are configured in…
Atul Kumbhar
  • 1,073
  • 16
  • 26
0
votes
1 answer

RabbitTemplate is not configured as MessageListener

I need to send and receive an ack synchronously and for that I am using the RabbitTemplate. The RabbitTemplate has queue and replyAddress property, but when trying to send me this error appears: java.lang.IllegalStateException: RabbitTemplate is…
jandres
  • 439
  • 1
  • 7
  • 21
0
votes
1 answer

How to trigger a method once all messages are consumed?

My code sends a batch of messages to multiple RabbitMQ Consumers and once the last message is consumed, I want to trigger a method. The timing to trigger the method has to to be after all messages because it uses data from all the message…
Glide
  • 20,235
  • 26
  • 86
  • 135
0
votes
1 answer

Load spring context even if rabbitmq is down

Is it possible to load spring context with @RabbitListener even if RabbitMQ message broker is down? The behavior should be similar as in case of broker disconnection. Application is waiting for broker and when it is restored, then listerner is…
deii
  • 113
  • 8
0
votes
2 answers

Dynamic SendTo annotation

I have Java code as following to receive messages form a queue, process it and write processed message to another queue. @RabbitListener(queues = "rawFusion") @SendTo("Fusion") public String receiverFusion(Object _message) { …
0
votes
2 answers

Spring Amqp annotations based

I am new to Spring AMQP and want to use annotation based configuration for both producers and consumers using latest spring amqp 1.5.4 , Is there any pseoudo code available for configuration which does the logic for creating connection or @Queue…
Akshat
  • 575
  • 2
  • 12
  • 28