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
0 answers

Apache Zookeeper Curator Framework with AMQP

I am new to AMQP , but I want to get an experience with AMQP with Curator Framework on Apache Zookeeper, So please let me know if you have a link for Github sample project and useful information to understand this.
Thiru
  • 759
  • 2
  • 9
  • 19
0
votes
1 answer

Spring AMQP convertSendAndReceive with Restful multi threaded producer

I am trying to decide whether convertSendAndReceive is going to work for the following use case: I have a RESTful web service that needs to make RPC calls and get a response back in order to service the request. I've never used the reply-to…
Josh Chappelle
  • 1,558
  • 2
  • 15
  • 37
0
votes
1 answer

Not able to process response received from template.convertSendAndReceive()

I am trying to send message and receive response using following code MessageProperties props =MessagePropertiesBuilder.newInstance().setContentType(MessageProperties.CONTENT_TYPE_TEXT_PLAIN) …
Pushparaj Dhole
  • 63
  • 1
  • 11
0
votes
1 answer

RabbitTemplate-convertSendAndReceive() giving a "null" response

I am trying to write sender receiver program which will send request and wait for the reply until receiver process the request. But getting a "null" response when I call this method -convertSendAndReceive().
Pushparaj Dhole
  • 63
  • 1
  • 11
0
votes
1 answer

How can I declare and subscribe many Queues to an TopicExchange without static config?

I have a Spring-Boot app containing many @Service components for handling event-typed AMQP messages. These messages are published by another component to a single ExchangeTopic separated by routing-keys. How should I create and subscribe the Queues…
Pepster
  • 1,996
  • 1
  • 24
  • 41
0
votes
0 answers

RabbitTemplate.ReturnCallback() is called always in dynamic queue publish

In our code we have attached RabbitTemplate.ReturnCallback() to get notification of not routed messages from consumer and it is working fine for the fixed queue. But in case of synchronous publish by using rabbitTemplate.sendAndReceive, after…
Prabhat
  • 21
  • 5
0
votes
1 answer

amqp.rabbit.core.RabbitTemplate.send(Message message) returns after 20-40 ms, even after the listener has received it. How to make send() faster?

I have a sample application using the following dependencies: org.springframework.amqp spring-amqp 1.4.5.RELEASE I have a rabbit sender which is…
Athira
  • 1
0
votes
1 answer

spring rabbit reply to the same queue

When I send reply messages to the same queue I connected to as a consumer, my consumer immediately try to consume this message again. But how to send it as reply without any further consumption? onMessage(...){ byte[] arr =…
avalon
  • 2,231
  • 3
  • 24
  • 49
0
votes
1 answer

RabbitMQ issue in AMQP

I have a queue in rabbitMQ server(version 3.3.5), on which 1 publisher publishes the messages. I have 1 consumer, which listens to those messages. Sometimes, the consumer stops receiving the messages published on the queue. This does not happen in…
Poonam Waikul
  • 151
  • 2
  • 10
0
votes
2 answers

"Cannot convert value of type" exception with Spring AMQP

I'm trying to send message to my direct exchange on RabbitMQ server. I have queue named as "test_queue" and direct exchange with same name "test_queue" which is bound to the queue ""test_queue". I use Spring AMQP with XML configuration for…
Andremoniy
  • 34,031
  • 20
  • 135
  • 241
0
votes
1 answer

How to gracefully close channel and connection when Queue length reach Zero?

We are using Spring AMQP library to consume messages from Queues in RabbitMQ. Our publisher produces variable number of messages on known schedules, So we are thinking about start Consumers to on schedule and stop once Queue is empty. I am wondering…
Giri Chintala
  • 130
  • 1
  • 7
0
votes
3 answers

Spring Boot and Spring AMQP RPC - No converter found to convert exception

I have several tutorials working with Spring Boot and RPC through RabbitMQ. However, as soon as I attempt to add a Jackson JSON message converter, it all falls to pieces. The remote invocation is successfully received by the server, so I feel…
Lukas Bradley
  • 410
  • 3
  • 10
0
votes
1 answer

How to add/delete listener from listener container at run time

I want to know how can we add/delete some listener from listener container at run time. I have configured listener container as below :
Rajat Goyal
  • 465
  • 1
  • 5
  • 20
0
votes
1 answer

Spring AmqpAppender LOG4J not working

I've created a simple Java Project. I'm trying to centralise logging with Logstash and RabbitMQ. But first I need to centralise my logs using RabbitMQ with AmqpAppender. But it doesn't work My configurations: Pom dependencies:
Michaël Kees
  • 23
  • 1
  • 1
  • 6
0
votes
1 answer

confirm-ack and confirm-nack channel not getting invoked

I am trying to configure the ack & nack channel and am getting the error like "Only one confirm call back channel can be configured at a time" Below are the things which I tried: 1. confirm-correlation-expression="#root" //no result found 2.…