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
17 lines
781 B
Plaintext
17 lines
781 B
Plaintext
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
|