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
6
votes
2 answers

RabbitMQ queue design and scaling

In my application I have a queue that could potentially become very big. What if I discover that there's no more space on my machine? How can I split my queue on multiple machines? Maybe RabbitMQ philosophy is different and I should create multiple…
5
votes
1 answer

How to fix AmqpTimeoutException in Spring AMQP connecting to rabbitMQ

I write an app based on Spring AMQP with RabbitMQ broker (on Mac OS). I have started the rabbitMQ's server and it is accessible through the Admin Console. But when my Spring app tries to connect the queue, it gets AmqpTimeoutException. Please help…
5
votes
0 answers

Spring-boot getting "second 'channel.open' seen" error in connection with rabbitmq

I have a spring boot application, using spring-boot version 1.5.16.RELEASE, which adds the below dependencies to my app: [INFO] | +- com.rabbitmq:http-client:jar:1.0.0.RELEASE:compile [INFO] | +-…
5
votes
2 answers

What is publisher Returns in Spring AMQP

I've been trying my hands on Spring AMQP. And I have a couple of questions: I'd like to know what is Publisher returns and how is it different from Publisher Confirm. Of my understanding, we have a Publisher Confirm Callback that checks the status…
Vipin Menon
  • 2,892
  • 4
  • 20
  • 35
5
votes
1 answer

OAuth2 authorization with Spring Security and Rabbitmq

We currently have a number of Spring microservices that are communicating with REST endpoints and RabbitMQ queues. We have just implemented OAuth2 security on all of the services, and the REST endpoints are appropriately secured. We have a library…
Steve
  • 374
  • 1
  • 4
  • 18
5
votes
2 answers

java.lang.NoClassDefFoundError: org/springframework/messaging/handler/annotation/support/MessageHandlerMethodFactory

I am going to make cqrs application using axon.I try to config axon RabbitMq to my application. If add spring-boot-starter-amqp and axon-amqp it make this error. how can I solve this. [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time…
wthamira
  • 2,032
  • 2
  • 21
  • 40
5
votes
2 answers

RabbitMQ Exchange and Queue are not created automatically

I have created a new spring application which will push messages to a rabbitmq server. My rabbitMQConfig java file looks like this : @Configuration public class RabbitMQConfig { private static final Logger LOGGER =…
Jayram Kumar
  • 682
  • 2
  • 16
  • 28
5
votes
1 answer

Single Queue, multiple @RabbitListener but different services

Is it possible to have a single @RabbitListener, e.g: @RabbitListener(queues = STORAGE_REQUEST_QUEUE_NAME) public FindApplicationByIdResponse findApplicationById(FindApplicationByIdRequest request) { return…
Kenneth Gunnerud
  • 208
  • 4
  • 13
5
votes
3 answers

Automatic retry connection to broker by spring-rabbitmq

I have read this fragment of docs: RabbitMQ Automatic Connection/Topology recovery Since the first version of Spring AMQP, the framework has provided its own connection and channel recovery in the event of a broker failure. Also, as discussed…
user6023611
5
votes
2 answers

Group received messages in RabbitMQ, preferably using Spring AMQP?

I'm receiving messages from a service (S) that publishes each individual property change to an entity as a separate message. A contrived example would be an entity like this: Person { id: 123 name: "Something", address: {...} } If name…
Johan
  • 37,479
  • 32
  • 149
  • 237
5
votes
1 answer

How to stop consuming messages with @RabbitListener

When I use MessageListenerAdapter to handle message, I could call SimpleMessageListenerContainer.stop() to stop consume from the queue. But after I change to use @RabbitListener to listen, I can't find a method like this. I tried…
greyby
  • 156
  • 1
  • 8
5
votes
1 answer

Send RabbitMQ message on Spring Application shutdown

I have a monitor service that sends a message to rabbitMQ on application startup, application shutdown and every minute (tick). The startup and tick events work fine. When the class was originally written the shutdown event also worked. I am using…
roblovelock
  • 1,971
  • 2
  • 23
  • 41
5
votes
1 answer

Change arguments of an existing queue

i would like to set the "x-message-ttl" of an existing queue, but the said it's not possible: Important The RabbitMQ broker will not allow declaration of a queue with mismatched arguments. For example, if a queue already exists with no time to…
MelleD
  • 657
  • 1
  • 9
  • 23
5
votes
2 answers

RabbitMQ - Send message to a particular consumer in a queue

This is the scenario - There are multiple app servers. Browser can connect via websocket to any app server. The app servers (consumers) are all listening on a particular queue. As soon as a web socket connection is received, the particular app…
nsdiv
  • 912
  • 12
  • 30
5
votes
1 answer

spring-amqp transaction semantics

I am currently testing a rather simple example concerning messaging transactions in connection with database transactions with spring amqp. The use case is as follows: message is received a message is sent database is updated @Transactional public…
Mathias Dpunkt
  • 11,594
  • 4
  • 45
  • 70