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

Double connections for one consumer

I am a new user of RabbitMQ and I really enjoy it but I have an issue (well it doesn't throw any error and it doesn't affect anything except my mind ...). Each time I run a consumer, it creates 2 connections. I can't find why so I am asking for your…
kinaesthesia
  • 703
  • 6
  • 27
0
votes
1 answer

spring-amqp clean up resources on listener container shutdown

I have multiple message containers with one listener each. Each listener Is not thread-safe Is declared @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) Is not stateless. it has an internal buffer of processed messages Every X messages…
Fab
  • 665
  • 3
  • 9
0
votes
2 answers

Integrate RabbitMQ with Spring Please advise on how to implement failure scenarios

1) Below is the code for the configuration for rabbitMQ with Spring.
user3504187
  • 83
  • 3
  • 12
0
votes
1 answer

spring-amqp zero consumer utilization with non thread-safe listener

We are experiencing a problem in production where consumers are having zero utilization and the queues keep growing and performance degrades. Each of the consumers is a container which contains a single instance of a non thread-safe listener…
Fab
  • 665
  • 3
  • 9
0
votes
2 answers

Spring-Boot AMQP 1.3.1.RELEASE - Durable Queue

For some reason my queue is not created as durable even though I specify that setting within the Spring AMQP Queue configuration: @Bean Queue queue() { //durable queue - true return new Queue(queueName, true); } I am the using Spring AMQP…
Jeremy Deane
  • 131
  • 1
  • 6
0
votes
1 answer

Spring boot AMQP and Spring Hadoop together ends up with missing EmbeddedServletContainerFactory bean

I have two small apps, one uses spring-boot-starter-amqp, other uses spring-data-hadoop-boot. I can run them separately without any problems. When I join them together, app start fails with exception:…
wst
  • 4,040
  • 4
  • 41
  • 59
0
votes
2 answers

Instruct RabbitMQ to resend undelivered messages periodically

Background We're using langohr to interact with RabbitMQ. We've tried two different approaches to let RabbitMQ resend messages that has not yet been properly handled by our service. One way that works is to send a basic.nack with requeue set to the…
Johan
  • 37,479
  • 32
  • 149
  • 237
0
votes
2 answers

Test framework in Spring Amqp

Is there any test framework around Spring Amqp , I have explored lots of areas but couldn't find one
Akshat
  • 575
  • 2
  • 12
  • 28
0
votes
2 answers

Messages being lost on consumer falling over

This seems like a pretty basic question, but I seem to be losing messages when the consumer falls over before acknowledging them. I have set up the broker with an exchange audit:exchange and a queue bound to it audti:queue. Both are durable, and as…
Alasdair54
  • 21
  • 2
0
votes
1 answer

writing to two different queue using amqp

I am trying to publish 2 diffrent message to two different queues one is errorQueue1 and other is errorQueue2 .ErrorQueue1 has virtual host vhost1 and errorQueue2 has virtualHost vhost2 both are on default exchange .My xml and code looks something…
constantlearner
  • 5,157
  • 7
  • 42
  • 64
0
votes
1 answer

TopicExchanger not sending to all queues

In my RabbitMQ, I have an topic exchanger called room-topic-exchange and the bindings are like this When I send a message to an specific queue, using the exchanger, everything works fine. I'm sending as…
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
0
votes
1 answer

correct JSON log format with AMQP appender

I am using "org.springframework.amqp.rabbit.log4j.AmqpAppender" class for writing logs into Rabbitmq. All I want is my application log should be enqueued in json format which will eventually be dequeued for elastic search. What will be correct…
RIPAN
  • 3,326
  • 4
  • 17
  • 28
0
votes
1 answer

Dead Letter routing in Spring Boot based application

I've read multiple answers on the topic and it seems that configuration I have should work properly but for some reason it doesn't. Here is the config: @Bean Queue intakeQueue(String name) { return new Queue(name, true); } @Bean Exchange…
eduard.dudar
  • 111
  • 2
  • 5
0
votes
1 answer

Spring AMQP ListenerContainer lifecycle management

We are using Spring AMQP to connect to RabbitMQ in our Spring based web application. When we declare our listener-containers as beans (using rabbit:listener-container) in application context, their lifecycle is managed by Spring. If we declare a…
nilgun
  • 10,460
  • 4
  • 46
  • 57
0
votes
0 answers

All the messages Sent are not Acknowledged RabbitMQ-Blocked Queue

I have sent around 500 messages to an exchange in RabbitMQ.Only 8 of them are processed by the application while 492 of them are not acknowledged. There are 40 concurrent listeners to the exchange which am posting to. The logs are as…
svs teja
  • 957
  • 2
  • 22
  • 43
1 2 3
99
100