From d59111543d18560a6630c6bcc798284010ad0c13 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 6 Sep 2022 16:33:01 +0200 Subject: [PATCH] :sparkles: Make messages durable --- src/main/java/de/netz39/svc/pwrMtrPlsGw/AmqpEmitter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/netz39/svc/pwrMtrPlsGw/AmqpEmitter.java b/src/main/java/de/netz39/svc/pwrMtrPlsGw/AmqpEmitter.java index ee6eb1a..315c98a 100644 --- a/src/main/java/de/netz39/svc/pwrMtrPlsGw/AmqpEmitter.java +++ b/src/main/java/de/netz39/svc/pwrMtrPlsGw/AmqpEmitter.java @@ -7,6 +7,7 @@ @RabbitClient public interface AmqpEmitter { @RabbitProperty(name = "contentType", value = "application/json") + @RabbitProperty(name = "deliveryMode", value = "2") // Durable messages void send(@Binding String destination, PulseMessage pulseMessage); }