未创建死信队列

wribegjk  于 2021-07-14  发布在  Java
关注(0)|答案(1)|浏览(301)

未创建我的exchange和dlq。以下是我的yml。我确实创建了一个匿名队列,但也没有发布消息。任何想法。

rabbit:
    bindings:
      documentrequest-policyinqadapter:
        producer:
          bindingRoutingKey: documentrequest.adapter.*.*.*.policyinq.req
          routing-key-expression: headers['events-type']
        consumer:
          autoBindDlq: true
          republishToDlq: true
          requeueRejected: false
          bindingRoutingKey: documentrequest.adapter.*.*.*.policyinq.req
          deadLetterQueueName: pi-adapter-dead-letter-queue
          deadLetterExchange: PI-DocumentRequestService-AdapterService-Exchange-dlx
          deadLetterRoutingKey: documentrequest.adapter.*.*.*.policyinq.req
          maxAttempts: 1
          maxConcurrency: 10
iyzzxitl

iyzzxitl1#

匿名订阅不支持死信队列;你必须添加一个 group 消费者绑定。

相关问题