Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ The envelope wire format is versioned separately by `meta.schema_version`

## [Unreleased]

## [1.1.1] - 2026-10-26

### Changed

- The poison DLQ block is built by `babelqueue-core` 1.14.0; no wire change. Requires `babelqueue-core` 1.14.0 (was 1.13.0).

## [1.1.0] - 2026-10-26

MINOR (ADR-0037): poison bodies are dead-lettered as the ADR-0035 record and the version gate follows one
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.babelqueue</groupId>
<artifactId>babelqueue-artemis</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
<packaging>jar</packaging>

<name>BabelQueue Apache ActiveMQ Artemis</name>
Expand Down Expand Up @@ -49,7 +49,7 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<babelqueue-core.version>1.13.0</babelqueue-core.version>
<babelqueue-core.version>1.14.0</babelqueue-core.version>
<jakarta.jms.version>3.1.0</jakarta.jms.version>
<junit.version>5.10.3</junit.version>
<mockito.version>5.12.0</mockito.version>
Expand Down
12 changes: 1 addition & 11 deletions src/main/java/com/babelqueue/artemis/ArtemisConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.babelqueue.DeadLetters;
import com.babelqueue.Envelope;
import com.babelqueue.EnvelopeCodec;
import com.babelqueue.JsonValues;
import com.babelqueue.PoisonRecord;
import com.babelqueue.UnknownUrnException;
import com.babelqueue.UnknownUrnStrategy;
Expand All @@ -18,7 +17,6 @@
import jakarta.jms.TextMessage;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.BooleanSupplier;
Expand Down Expand Up @@ -298,15 +296,7 @@ private void deadLetterPoison(Message message, Throwable cause) throws JMSExcept
* {@code poison_dlq} case reaches it through {@link #poll()}, invalid UTF-8 as a {@code BytesMessage}).
*/
static String poisonRecord(byte[] body, String originalQueue, int attempts, Throwable cause) {
Map<String, Object> block = new LinkedHashMap<>();
block.put("reason", "poison");
block.put("error", cause.getMessage());
block.put("exception", cause.getClass().getName());
block.put("failed_at", System.currentTimeMillis());
block.put("original_queue", originalQueue);
block.put("attempts", attempts);
block.put("lang", EnvelopeCodec.SOURCE_LANG);
return PoisonRecord.build(body, JsonValues.encode(block));
return PoisonRecord.build(body, originalQueue, attempts, cause.getMessage(), cause.getClass().getName());
}

/** The consumed queue's name: the message's JMS destination, else the DLQ name without its {@code .dlq} suffix. */
Expand Down
Loading