-
Notifications
You must be signed in to change notification settings - Fork 37
Consumer configured via application.yml not working #136
Comments
Fixed this by changing config: consumers:
MyConsumer:
queue: test
match: all |
Why closing this? I think that the |
I'd need more information to be able to understand what's going on here, but |
I no longer have access to the source code. But as far as I remember, the default exchange was used (i.e. it wasn't explicitly configured) |
In our case, we have following configuration: rabbitmq:
connections:
- host: my.host.com
username: rabbitmg
password: rabbitmg
virtualHost: rabbitmg
isDefault: true
requestedHeartbeat: 10
exchanges:
- name: amq.topic
type: topic
durable: true
queues:
- name: my-server:message
durable: true
exchange: amq.topic
binding: 'message.#'
consumers:
MessageConsumer:
queue: my-server:message This doesn't work: I don't receive the message into MessageConsumer: class MessageConsumer {
def handleMessage(def body) {
log.debug("received rabbitmq message $body")
}
} When we add rabbitmq:
...
consumers:
MessageConsumer:
queue: my-server:message
match: all |
With configuration below, the consumer class is not listen incoming messages and not displayed in active connections of RabbitMQ
application.yml:
MyConsumer.groovy:
But, if uncomment
rabbitConfig
in the class and remove configuration of consumer fromapplication.yml
, then all works as expected.The text was updated successfully, but these errors were encountered: