Questions tagged [spring-rabbit]

Spring components for AMQP-based messaging with RabbitMQ.

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

1331 questions
10
votes
1 answer

Rabbitmq reload/refresh new certificates without restart

I am using self signed certificates in my Rabbitmq server and the broker is started successfully with SSL port. I am now trying to renew / use new SSL certificates, SSL key and truststore but I do not want to restart the running rabbitmq server as…
10
votes
1 answer

Rabbitmq camel spring boot auto config

I have camel and rabbitmq configured like the following and it is working. I am looking to improve the config setup. pom.xml org.apache.camel camel-rabbitmq-starter
Robbo_UK
  • 11,351
  • 25
  • 81
  • 117
10
votes
1 answer

How to restart a SimpleMessageListenerContainer

I try to connect to a RabbitMQ with spring boot. The connection should always restart/retry the connection. I have a problem reconnecting after a fatal exception. The application can never loose a connection and not indefinitely retry to get a…
Florian
  • 1,827
  • 4
  • 30
  • 62
10
votes
4 answers

How to deal with JSON message with spring-rabbit in spring boot application?

Here are my code snippets. MQConfiguration class for configuration @Configuration public class MQConfiguration { @Bean public Receiver receiver() { return new Receiver(); } } Receiver class for dealing with receiving…
kenshinji
  • 2,021
  • 4
  • 25
  • 39
10
votes
1 answer

how to use @queuebinding with @rabbitlistener?

Seems since spring-amqp version 1.5, there is a new annotation @queuebinding。But how to use it, i don't know if it can be used on a class or a method? Does it exist any example?
GrapeBaBa
  • 1,391
  • 3
  • 12
  • 22
9
votes
2 answers

What's the difference between SimpleMessageListenerContainer and DirectMessageListenerContainer in Spring AMQP?

What's the difference between SimpleMessageListenerContainer and DirectMessageListenerContainer in Spring AMQP? I checked both of their documentation pages, SimpleMessageListenerContainer has almost no explanation on inner workings, and…
Mansur
  • 1,661
  • 3
  • 17
  • 41
9
votes
2 answers

RabbitMQ how to split jobs to tasks and handle results

I have the following use case on a Spring-based Web application: I need to apply the Competing Consumers EIP with the following twists: the messages in the queue are actually split tasks belonging to the same job. Therefore, I need to properly…
kmandalas
  • 418
  • 1
  • 5
  • 17
9
votes
2 answers

RabbitMQ and Delivery Guarantees in Distributed Database Transaction

I am trying to understand what is the right pattern to deal with RabbitMQ deliveries in the context of distributed database transaction. To make this simple, I will illustrate my ideas in pseudocode, but I'm in fact using Spring AMQP to implement…
Edwin Dalorzo
  • 76,803
  • 25
  • 144
  • 205
9
votes
1 answer

how to mark a message as persistent using spring-rabbitmq?

This is how I'm creating an exchange and binding a queue to it
Lalit Mehra
  • 1,183
  • 1
  • 13
  • 33
9
votes
4 answers

JUnit Tests for RabbitMQ

I am building an application using RabbitMQ with Spring: so far so good. To define Unit Tests I am using JUnit targeting an external server. What I wanted to find out is if there is a way to mock the RabbitMQ server to perform tests, and if there…
Ing. Luca Stucchi
  • 3,070
  • 6
  • 36
  • 58
9
votes
2 answers

Spring AMQP RabbitMQ implementing priority queue

After Google for a few days, and i believe i am totally lost. I would like to implement a kind of priority queue that has about 3 queues: high priority queue (daily), that needs to be process first. mid priority queue (weekly), that will process…
Reusable
  • 1,888
  • 7
  • 27
  • 46
8
votes
6 answers

Where is the spring rabbit XSD (schema location for the rabbit: namespace)

http://static.springsource.org/spring-amqp/docs/1.0.x/reference/html/ mentions the rabbit: namespace, but never mentions what is the schema location. Googling (and naming conventions) ended up with:…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
8
votes
2 answers

What's the earliest point of entry to read a rabbit message in spring-amqp?

I store thread-local rabbit message data in an MDC. I would like to clear the old and add new context data for an incoming rabbit message, like reading certain values from the headers or reading the rabbit message payload as a byte[]. Unfortunately…
kinbiko
  • 2,066
  • 1
  • 28
  • 40
8
votes
1 answer

Rabbit listener annotation get queue name from yaml

I currently have my rabbit listener annotation set as: @RabbitListener(queues = "my-queue") Is it not possible to pull in the queue name from my yaml file. The reason I want to do this, is so that I can change my queue to a test queue for my…
helpme7766
  • 249
  • 5
  • 13
8
votes
1 answer

SpringAMQP RabbitMQ how to send directly to Queue without Exchange

I'm using SpringAMQP with Rabbit template. How to send messages directly to Queues omitting Exchange? How can i do it?
munja777
  • 109
  • 1
  • 2
1
2
3
88 89