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

Dynamically selecting a RabbitMq queue in Exchange using spring integration

From producer I have to send message to an RabbitMQ Exchange. this message will contain specific attribute, for example , queue name, based on this attribute, I have to dynamically decide the queue to send this message.[queue to bind from exchange,…
0
votes
1 answer

RabbitMQ tutorials code not working

I am in the process of learning RabbitMQ. I started with the basic rabbitmq tutorials in their website, unfortunately I am not able to compile them due to the following errors: ConnectionFactory factory = new…
dehsams123
  • 251
  • 2
  • 7
  • 18
0
votes
1 answer

Should image be base64 encoded in a JSON message or returned as BytesMessage in Spring AMQP?

I have setup basic Request/Reply Messaging via spring amqp using POJOs and these are exchanged over RabbitMQ via a JSON message converter. My response pojo's payload so far has been simple strings but now I need to reply back with an image at times…
pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84
0
votes
1 answer

How do I convert a JSON message from RabbitMQ to a Java object?

I have two separate Java apps which I need to send messages between via RabbitMQ using spring-rabbit. In the app which is the producer I am using JsonMessageConverter as the message converter for my RabbitTemplate to convert my Java objects to JSON…
Brett
  • 3,825
  • 3
  • 24
  • 27
0
votes
1 answer

Null response for spring-amqp Request/Reply Messaging

I'm following the instructions for the Stock Trading sample, which outlines how to use request/reply messaging in spring-amqp: http://static.springsource.org/spring-amqp/docs/1.2.x/reference/html/sample-apps.html#d4e742 I've tweaked the sample…
pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84
0
votes
1 answer

How to set content-type for the reply in spring-amqp Request/Reply Messaging?

I'm following the instructions for the Stock Trading sample, which outlines how to use request/reply messaging in spring-amqp: http://static.springsource.org/spring-amqp/docs/1.2.x/reference/html/sample-apps.html#d4e742 Looking at the ServerHandler…
pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84
0
votes
1 answer

How to make compiler restrict me from using any RabbitMQ AMQP extensions?

I am planning on using RabbitMQ as the AMQP implementation in my project. But I would like to restrict myself to using only the AMQP spec and not use any RabbitMQ extensions to AMQP. Is there a way I can leave this 'spec-safety' check to the…
2020
  • 2,821
  • 2
  • 23
  • 40
0
votes
1 answer

RabbitMQ suddenly does not receive messages from Spring AMQP

I've been moving my dev-environment from Linux to Mac and suddenly I'm facing weird RabbitMQ behavior. I had Ubuntu box, on which RabbitMQ 2.8.7-1 runned and I did dev stuff on the same box. I've been running my testcode (provided below) and Rabbit…
shmoula
  • 1,053
  • 2
  • 10
  • 33
-1
votes
2 answers

How to retry starting Apache Camel RabbitMQ consumer router if the RabbitMQ server is temporarily unavailable

I have a simple Apache Camel route from("spring-rabbitmq:myExchange?routingKey=foo&bridgeErrorHandler=true") .log("From RabbitMQ: ${body}"); The sample project is here. If the RabbitMQ server is up and running when I start the route,…
Jirmed
  • 373
  • 2
  • 13
-1
votes
1 answer

Version Compatibility between spring-rabbit and com.rabbitmq

I'm using below rabbitmq dependency in my application. org.springframework.amqp spring-rabbit 1.3.4.RELEASE
Manohar Nr
  • 11
  • 3
-1
votes
1 answer

Spring AMQP: Stopping a SimpleConsumer from DirectMessageListenerContainer

I have a use case where I am dynamically registering and removing a queue to and from a container based on some predicate. I am using a DirectMessageListenerContainer based on the advice given in the documentation as per my needs. Those dynamic…
-1
votes
1 answer

Spring Rabbit mq Listner complete the process even if is killed

I have integrated rabbitmq in a spring application.In my application i am doing indexing on solr using rabbit mq. On my every queue i have set only one listner. I want to stop the listner on message progess.But the problem is that when i am going to…
-1
votes
1 answer

Why am I getting the RabbitMQ exchange exception?

Here are my queues setting for tests, they are incorrect but they work: mq: username: guest password: guest host: localhost port: ${QA_RABBIT_LISTENER} ig-smev3: listener: vhost: / exchangeName: igSmev3Listener …
Maksym Rybalkin
  • 453
  • 1
  • 8
  • 22
-1
votes
1 answer

is there any setting to go back to the first cluster CachingConnectionFactory setAddresses

I am using CachingConnectionFactory the setAddresses method for multiple clusters. connection = new CachingConnectionFactory(); connection.setAddresses("rabbit1:5672,rabbit2:5672"); when i turn off cluster rabbit1 it starts on the next cluster…
Oliver
  • 1
-1
votes
1 answer

Add non-blocking consumer using AsyncRabbitTemplate

I am new to Rabbitmq and i would like to build a non-blocking consumer. i followed How to build a nonblocking Consumer when using AsyncRabbitTemplate with Request/Reply Pattern and created an application and deployed in local. But i get…
1 2 3
88
89