Add amqp10 module: AMQP 1.0 in Spring Boot 4.2 with RabbitMQ 4

Generic spring-boot-starter-amqp (AmqpClient, @AmqpListener) and RabbitMQ's own AMQP 1.0 client
against a real RabbitMQ 4.4.1 broker via Testcontainers. Transcripts in amqp10/output/ are written
by the tests; no docs/ folder.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b44H98Yd627wauSpzA
This commit is contained in:
Ankur Mhatre
2026-11-25 23:27:57 +05:30
co-authored by Claude Sonnet 5.5
parent 78fc41e586
commit e54cf840fd
34 changed files with 1320 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
0-9-1 producer (RabbitTemplate) -> AMQP 1.0 consumer (AmqpClient.receive):
body = {"id":"i-1","item":"classic","qty":1}
messageId = m-classic
correlationId = c-classic
contentType = application/json
deliveryMode = null
headers = {attempt=3, tenant=acme}
AMQP 1.0 producer (AmqpClient.to) -> 0-9-1 consumer (RabbitTemplate.receive):
body = {"id":"i-2","item":"amqp10","qty":2}
messageId = m-amqp10
correlationId = c-amqp10
contentType = application/json
deliveryMode = PERSISTENT
headers = {__TypeId__=com.ankurm.amqp10.OrderMessage, attempt=3, tenant=acme}
$ rabbitmqctl list_connections protocol, while both clients are connected:
AMQP 0-9-1 connection open = true, AMQP 1.0 connection open = true