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

Java Spring RabbitMq consumer

I am trying to create a RabbitMq consumer in Java Spring framework. Where I need to implement RabbitMq RPC model, so basically consumer shall receive some message from RabbitMq broker, process it, and send it back to the associated reply queue. Can…
Curious George
  • 159
  • 2
  • 3
  • 8
0
votes
2 answers

Can @RabbitListener apply by condition

I want create a RabbitListener when a property is present, but @ConditionOnProperty cannot combine with @RabbitListener. Now I have a workaround below. Does it exist any better method? @Bean @ConditionalOnProperty(name =…
GrapeBaBa
  • 1,391
  • 3
  • 12
  • 22
0
votes
1 answer

Synchronizing Hibernate persistence + Spring AMQP publish transactions

In my application a user creates a post which gets persisted in the db + published to a Spring amqp queue When the user creates a post flow hits the controller @RequestMapping(value="/createPost", method=RequestMethod.POST, consumes =…
underdog
  • 4,447
  • 9
  • 44
  • 89
0
votes
1 answer

rabbitListener execute task when no message in the queue

we are using @RabbitListener to listen to the queue and when there are messages we process them. However I want to do some reporting task when queue is empty, this happens when our app just processed tons of messages in the queue and no more message…
user468587
  • 4,799
  • 24
  • 67
  • 124
0
votes
1 answer

Spring AMQP logs repeating despite disabling in log4j.xml

I am receiving the following logs repeatedly while using Spring AMQP: 01:21:54.323 [SimpleAsyncTaskExecutor-1] DEBUG o.s.a.r.l.BlockingQueueConsumer - Retrieving delivery for Consumer: tag=[amq.ctag-XAaHUPISVTmjpL-am3y15g], channel=Cached…
Abhiroop Sarkar
  • 2,251
  • 1
  • 26
  • 45
0
votes
1 answer

Fanout exchange behaving as Direct exchange in Spring AMQP

I am facing an issue while using RabbitMQ in the fanout exchange which due to some unknown reason is behaving like a direct exchange. I am using a following binding and queue configuration
Akshat
  • 575
  • 2
  • 12
  • 28
0
votes
1 answer

Spring AMQP Reporting

We are using spring AMQP to listen to rabbitMQ for messages. I want to be able to report the metrics once we finished processing batch of messages, that means when we exhausts all the message in the queue. I m not sure how to do that in Spring AMQP.…
user468587
  • 4,799
  • 24
  • 67
  • 124
0
votes
1 answer

Rabbitmq cluster with spring doesn't fail back after failover

I connect to a cluster of rabbitmq nodes ( A, B ) using spring-amqp. Also, assume there are two message receivers ( Receiver_1 and Receiver_2 ) which were using connections to node A. When A goes down, does Receiver_1 and Receiver_2 automatically…
user3359139
  • 430
  • 4
  • 17
0
votes
1 answer

Retry is not working in spring-AMQPwith Rabbitmq

am trying to retry 3 times if any exception comes while consuming message from rabbitmq,but it is not stopping after 3 times,contineously retrying n number of times. can anybody help me on this please thanks in advance Config.xml