Spring Cloud Stream ServiceBus Java for managing dead letter queues

567 Views Asked by At

are there any options to send/receive from dead letter queue, set dead letter reason and so on using Spring Cloud Stream framework, but not native Azure SDK for Java?

Ive tried to use some Spring Cloud Stream properties, but hasnt found any possibilities of dead-letter queue management, but only sending/receiving to/from original ASB queue

1

There are 1 best solutions below

1
On
  • I know you have already tried but as far I know the properties is the only way of reverting the messages to dead letter queue in a case of failure

  • Just make sure that the property is set to true.

spring.cloud.stream.servicebus.bindings.<binding-name>.consumer.requeue-rejected
  • This should DLQ the message in an event of failure.

You can refer this reference guide on Spring Cloud Stream Binder for Azure Service Bus